Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ”€ update :: Gauth-CD μ •μƒμ μœΌλ‘œ μž‘λ™λ˜κ²Œλ” μˆ˜μ • #257

Merged
merged 3 commits into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading