Skip to content

Commit

Permalink
Merge pull request #257 from GSM-MSG/256-gauth-cdyml-env-value-edit
Browse files Browse the repository at this point in the history
🔀 update :: Gauth-CD 정상적으로 작동되게끔 수정
  • Loading branch information
MinnSeoo authored Jan 30, 2024
2 parents 8de907d + e59fdc9 commit 10c1d11
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/Gauth-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Gauth Server CD

on:
push:
branches: [ main ]
branches: [ "*" ]

env:
S3_BUCKET_NAME: gauth-deploy-bucket
Expand All @@ -25,11 +25,6 @@ jobs:
run: chmod +x ./gradlew
shell: bash

- name: Create application.yml
run: |
touch ./src/main/resources/application.yml
echo "${{ secrets.APPLICATION_YML }}" > ./src/main/resources/application.yml
shell: bash

- name: Build with Gradle
run: ./gradlew clean build -i -x test
Expand All @@ -47,14 +42,14 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}

- name: Upload to S3
run: aws s3 cp ${{ secrets.AWS_REGION }} ./$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/$PROJECT_NAME/$GITHUB_SHA.zip
run: aws s3 cp ./$GITHUB_SHA.zip s3://$S3_BUCKET_NAME/$PROJECT_NAME/$GITHUB_SHA.zip

- name: Deploy
run: |
aws deploy create-deployment \
--application-name ${{ secrets.GAUTH_CODEDEPLOY }} \
--application-name ${{ secrets.GAUTH_CODEDEPLOY }} \
--deployment-config-name CodeDeployDefault.OneAtATime \
--deployment-group-name ${{ secrets.GAUTH_DEPLOY_GROUP }} \
--file-exists-behavior OVERWRITE \
--s3-location bucket=${{ secrets.GAUTH_DEPLOY_S3_NAME }},bundleType=zip,key=${{ secrets.GAUTH_S3_OBJECT }}/$GITHUB_SHA.zip \
--region ap-northeast-2 \
--region ${{ secrets.AWS_REGION }}

0 comments on commit 10c1d11

Please sign in to comment.