티스토리 뷰

공부

[aws] s3 cp github action (workflow)

승가비 2022. 8. 31. 15:20
728x90
name: deploy-seunggabi-batch-prod

on:
  push:
    branches:
      - main
    paths:
      - seunggabi-batch/**
      - seunggabi-core/**
  workflow_dispatch:

env:
  MODULE: seunggabi-batch
  APP_NAME: seunggabi-batch
  APP_PROFILE: prod
  AWS_ACCESS_KEY_ID: ${{ secrets.seunggabi_AWS_ACCESS_KEY_ID }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.seunggabi_AWS_SECRET_ACCESS_KEY }}

jobs:
  build:
    runs-on: [ self-hosted, Linux, X64, mortar-runner ]
    env:
      DEBUG: true
    steps:
      - uses: actions/checkout@v2
      - uses: unfor19/install-aws-cli-action@v1.0.3
      - name: copy
        working-directory: ./seunggabi-batch
        run: |
          aws s3 cp ./build/libs/seunggabi-batch.jar s3://seunggabi/kr/prod/batch/static/jar/ |
          aws s3 cp ./static/json/spark.json s3://seunggabi/kr/prod/batch/static/json/
728x90

'공부' 카테고리의 다른 글

[python] if some_string: (some_string is empty)  (0) 2022.08.31
[python] slack chat & files  (1) 2022.08.31
[MySQL] id 컬럼 데이터타입 INT? BIGINT?  (0) 2022.08.31
[golang] env -> variable  (0) 2022.08.24
[aws] ECR docker login & pull  (0) 2022.08.23
댓글