Skip to content

Commit

Permalink
[#56] cd: deploy시 inputs에 version 사용하도록 변경 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomo committed Aug 10, 2023
1 parent 8050656 commit f0566ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/develop_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
script: |
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ECR_REGISTRY_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
cd ~/TodaysFail-Backend
VERSION=${{ github.event.inputs.commit_hash }}
VERSION=${{ github.event.inputs.version }}
sed -i "s/VERSION=.*/VERSION=$VERSION/" .env
docker-compose -f ~/TodaysFail-Backend/docker-compose-develop.yml pull
docker-compose -f ~/TodaysFail-Backend/docker-compose-develop.yml up --build -d
Expand All @@ -64,7 +64,7 @@ jobs:
${{ github.event.inputs.version }}
*배포 내역 보기*
https://github.com/TodaysFail/TodaysFail-Backend/commit/${{ github.event.inputs.commit_hash }}
https://github.com/TodaysFail/TodaysFail-Backend/commit/${{ github.event.inputs.version }}
- name: Notify on failure
if: ${{ failure() }}
Expand All @@ -82,4 +82,4 @@ jobs:
${{ github.event.inputs.version }}
*배포 내역 보기*
https://github.com/TodaysFail/TodaysFail-Backend/commit/${{ github.event.inputs.commit_hash }}
https://github.com/TodaysFail/TodaysFail-Backend/commit/${{ github.event.inputs.version }}

0 comments on commit f0566ea

Please sign in to comment.