공부
[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