Skip to content

Commit

Permalink
hotfix: Elastic BeanStalk 배포 version Label (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
char-yb authored Jul 7, 2024
1 parent 3794549 commit 8a24289
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/develop-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ jobs:
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_IMAGE_NAME }} .
docker push ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.DOCKERHUB_IMAGE_NAME }}
- name: Current Time
uses: gerred/[email protected]
id: current-time

- name: Replace string
uses: frabert/[email protected]
id: format-time
with:
pattern: '[:\.]+'
string: "${{ steps.current-time.outputs.time }}"
replace-with: '-'
flags: 'g'

- name: Prepare deployment package
run: |
zip -r deployment-package.zip Dockerrun.aws.json
Expand All @@ -53,7 +66,7 @@ jobs:
existing_bucket_name: "walwal-server-dev-deployment"
application_name: "walwal-dev"
environment_name: "Walwal-dev-env"
version_label: "github-action-dev"
version_label: "github-action-dev-${{ steps.format-time.outputs.replaced }}"
region: ap-northeast-2
deployment_package: deployment-package.zip

Expand Down

0 comments on commit 8a24289

Please sign in to comment.