Skip to content

Commit

Permalink
minor change made for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
themerous committed Jul 28, 2024
1 parent 3c62a39 commit 8bf1927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
context: .
push: true
tags: ${{ secrets.REGISTRY_URL }}/react-app:latest
tags: ${{ secrets.REGISTRY_URL }}/react-app:${{ env.TAG }}


- name: SSH and deploy
Expand All @@ -58,7 +58,7 @@ jobs:
password: ${{ secrets.SERVER_PASSWORD }}
script: |
docker login -u ${{ secrets.NAVER_ACESSKEY }} -p ${{ secrets.NAVER_SECRETKEY }} ${{ secrets.REGISTRY_URL }}
docker pull ${{ secrets.REGISTRY_URL }}/react-app:latest
docker pull ${{ secrets.REGISTRY_URL }}/react-app:${{ env.TAG }}
docker stop react-app-container || true
docker rm react-app-container || true
docker run -d -p 80:3000 --name react-app-container ${{ secrets.REGISTRY_URL }}/react-app:latest
docker run -d -p 80:3000 --name react-app-container ${{ secrets.REGISTRY_URL }}/react-app:${{ env.TAG }}

0 comments on commit 8bf1927

Please sign in to comment.