Skip to content

Commit

Permalink
chore: CD 스크립트에서 도커 이미지 태그를 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hseong3243 authored Jan 15, 2024
1 parent 56b2abf commit 21ffe47
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/shoutlink:$(date +%s)
tags: ${{ secrets.DOCKER_USERNAME }}/shoutlink:latest

- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v1.0.3
Expand All @@ -53,7 +53,5 @@ jobs:
key: ${{ secrets.AWS_PRIVATE_KEY }}
script: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/shoutlink
docker-compose down
docker rmi $(docker images -p)
docker-compose up -d

0 comments on commit 21ffe47

Please sign in to comment.