Skip to content

Commit

Permalink
cicd : git actions ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboysj committed Nov 13, 2024
1 parent 31ad093 commit 2e3c056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
id: metadata
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKER_USERNAME }}/${{ env.DOCKERHUB_IMAGE_NAME }}
images: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}
tags: |
type=sha,prefix=
type=ref,event=branch
Expand All @@ -69,7 +69,7 @@ jobs:
port: 22
script: |
cd /home/ubuntu
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ env.DOCKERHUB_IMAGE_NAME }}:${{ github.sha }}
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{ github.sha }}
docker-compose down
docker-compose build --no-cache
docker-compose up -d --force-recreate

0 comments on commit 2e3c056

Please sign in to comment.