Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yerimsw authored Aug 2, 2024
1 parent 63168b9 commit 77dcba6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ jobs:

- name: Push image to DockerHub
run: docker push acchotsix/acc-hotsix:latest


- name: Make zip file
run: zip -r ./hotsix.zip .

## deploy to production
- name: Configure AWS IAM credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -69,9 +72,12 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ap-northeast-2

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./hotsix.zip s3://acc6-s3-dev-an2/hotsix.zip #버킷에 업로드.

- name: Start CodeDeploy Agent
run: >
aws deploy create-deployment --application-name hotsix
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name deploy-group
--s3-location bucket=acc6-s3-dev-an2,bundleType=zip,key=hotsix.zip
--s3-location bucket=acc6-s3-dev-an2,bundleType=zip,key=hotsix.zip

0 comments on commit 77dcba6

Please sign in to comment.