Skip to content

fix: 온보딩 유저 추천 - 찌르기 여부 수정 (#198) #54

fix: 온보딩 유저 추천 - 찌르기 여부 수정 (#198)

fix: 온보딩 유저 추천 - 찌르기 여부 수정 (#198) #54

name: ⚙️ MAKERS-DEV-APP-DEPLOY
on:
push:
branches: [ 'dev' ]
env:
RESOURCE_PATH: ./src/main/resources/application-local.yaml
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
deployment-group-name: [ makers-dev-app ]
codedeploy-application-name: [ app ]
s3-bucket: [ sopt-makers-app ]
steps:
- name: checkout
uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: mkdir resources folder
run: touch ./src/main/resources/application-local.yml
shell: bash
- name: copy yaml file
run: echo "${{ secrets.APPLICATION_LOCAL_YML }}" > ./src/main/resources/application-local.yml
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: 🐈 Gradle Build
run: ./gradlew clean build
- name: 📂 Make zip file
run: zip -r ./$GITHUB_SHA.zip .
- name: 🪣 S3 upload
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.DEV_AWS_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.DEV_AWS_SECRET_KEY }}
aws-region: ap-northeast-2
- name: 🚀 s3 upload
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://${{matrix.s3-bucket}}/deploy/dev/$GITHUB_SHA.zip
- name: CodeDeploy~!
run: aws deploy create-deployment
--application-name ${{matrix.codedeploy-application-name}}
--deployment-group-name ${{matrix.deployment-group-name}}
--file-exists-behavior OVERWRITE
--ignore-application-stop-failures
--s3-location bucket=${{matrix.s3-bucket}},bundleType=zip,key=deploy/dev/$GITHUB_SHA.zip
--region ap-northeast-2