From 29d884446870906414810c46a442d8be8c412f9b Mon Sep 17 00:00:00 2001 From: seminchoi Date: Tue, 20 Aug 2024 14:49:38 +0900 Subject: [PATCH] =?UTF-8?q?setting:=20githubaction=20deploy=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index af9d4ac2..5e9e7ee1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: CD +name: Deploy on: push: @@ -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}]' +