Skip to content

fix: JSON 매핑이 안되어 공공데이터 저장 안되는 문제 해결 #90

fix: JSON 매핑이 안되어 공공데이터 저장 안되는 문제 해결

fix: JSON 매핑이 안되어 공공데이터 저장 안되는 문제 해결 #90

Workflow file for this run

name: CI/CD
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_ACCESS_TOKEN }}
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build with Gradle
run: ./gradlew build
- name: Make zip file
run: zip -r ./$GITHUB_SHA.zip .
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://collecting-box-dev/$GITHUB_SHA.zip
- name: Code deploy
run: |
aws deploy create-deployment \
--deployment-config-name CodeDeployDefault.AllAtOnce \
--application-name collecting-box-deploy \
--deployment-group-name collecting-box-server \
--s3-location bucket=collecting-box-dev,bundleType=zip,key=$GITHUB_SHA.zip