Skip to content

Commit

Permalink
setting: githubaction deploy 스크립트 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seminchoi committed Aug 20, 2024
1 parent 37ae3f2 commit 29d8844
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CD
name: Deploy

on:
push:
Expand Down Expand Up @@ -45,11 +45,13 @@ jobs:

- name: Deploy
run: |
aws deploy create-application --application-name ticketing || echo "Application 'ticketing' already exists, skipping creation."
aws deploy create-deployment \
--application-name ticketing \
--deployment-config-name CodeDeployDefault.AllAtOnce \
--deployment-group-name ticketing \
--file-exists-behavior OVERWRITE \
--s3-location bucket=team3rdparty-bucket,bundleType=zip,key=deploy/$GITHUB_SHA.zip \
--region ap-northeast-2 \
--ec2-tag-filter Key=Name,Value=team3-ticket,Type=KEY_AND_VALUE
--s3-location bucket=team3rdparty-bucket,bundleType=zip,key=deploy/$GITHUB_SHA.jar \
--target-instances 'tagFilters=[{Key=Name,Value=team3-ticket,Type=KEY_AND_VALUE}]'

0 comments on commit 29d8844

Please sign in to comment.