Skip to content

Commit 350a46f

Browse files
committed
Ci: deploy workflow 수정
1 parent 39e1230 commit 350a46f

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/dev-deploy.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
EB_APP_NAME: routebox
1010
EB_ENV_NAME: Routebox-dev-env
1111
JAR_FILE: routebox-0.0.1.jar
12-
VERSION_LABEL: ${{ github.run_number }}-${{ github.sha }}
12+
VERSION_LABEL: v-${{ github.run_number }}-${{ github.sha }}
1313

1414
permissions:
1515
contents: read
@@ -83,5 +83,14 @@ jobs:
8383
eb init ${{ env.EB_APP_NAME }} --platform "Corretto 17 running on 64bit Amazon Linux 2023" --region ${{ env.AWS_REGION }}
8484
eb use ${{ env.EB_ENV_NAME }}
8585
86+
- name: Create Application Version
87+
run: |
88+
aws elasticbeanstalk create-application-version \
89+
--application-name ${{ env.EB_APP_NAME }} \
90+
--version-label ${{ env.VERSION_LABEL }} \
91+
--source-bundle S3Bucket="${{ env.EB_APP_NAME }}",S3Key="deploy.zip" \
92+
--process
93+
aws s3 cp deploy.zip s3://${{ env.EB_APP_NAME }}/deploy.zip
94+
8695
- name: Deploy to Elastic Beanstalk
87-
run: eb deploy --staged --timeout 30 --version=${{ env.VERSION_LABEL }} --source=deploy.zip
96+
run: eb deploy ${{ env.EB_ENV_NAME }} --version=${{ env.VERSION_LABEL }} --timeout 30

0 commit comments

Comments
 (0)