Skip to content

deploy: 9주차 CI/CD 테스트용 중간 배포 #10

deploy: 9주차 CI/CD 테스트용 중간 배포

deploy: 9주차 CI/CD 테스트용 중간 배포 #10

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: 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 sync deploy.tar.gz s3://gamja-bongsa