Skip to content

deploy: 11주차 수정 내용 배포 #16

deploy: 11주차 수정 내용 배포

deploy: 11주차 수정 내용 배포 #16

Workflow file for this run

name: Prod-CI
on:
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
- name: Set YML
run: |
echo $DATA_KEY_YML | base64 --decode > src/main/resources/application-data.yml
env:
DATA_KEY_YML: ${{ secrets.APPLICATION_DATA_YML }}
- name: Build with Gradle Wrapper
run: ./gradlew build
- name: archive build directory
run: |
mkdir deploy
cp scripts/*.sh deploy
cp appspec.yml deploy
cp build/libs/*.jar deploy
tar cvfz deploy.tar.gz deploy
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
- name: upload to S3
run: |
aws s3 cp deploy.tar.gz s3://gamja-bongsa