Skip to content

Commit

Permalink
chore: develop_deploy.yml 에서 커밋해쉬 사용하도록 수정 (#79)
Browse files Browse the repository at this point in the history
chore: develop deploy actions에서 커밋해쉬 사용하도록 수정
  • Loading branch information
kdomo authored Dec 26, 2023
1 parent 15689de commit da1a865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/develop_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: appleboy/ssh-action@master
env:
NCP_CONTAINER_REGISTRY: ${{ secrets.NCP_CONTAINER_REGISTRY }}
NCP_IMAGE_TAG: ${{ needs.build.outputs.sha }}
NCP_IMAGE_TAG: ${{ github.event.inputs.commit_hash }}
with:
host: ${{ secrets.NCP_HOST }}
username: tenminute
Expand All @@ -26,6 +26,6 @@ jobs:
envs: NCP_CONTAINER_REGISTRY,NCP_IMAGE_TAG # docker-compose.yml 에서 사용할 환경 변수
script: |
echo "${{ secrets.NCP_SECRET_KEY }}" | docker login -u "${{ secrets.NCP_ACCESS_KEY }}" --password-stdin "${{ secrets.NCP_CONTAINER_REGISTRY }}"
docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring:${{ needs.build.outputs.sha }}
docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring:${{ github.event.inputs.commit_hash }}
docker compose -f /home/tenminute/docker-compose.yaml up -d
docker image prune -a -f

0 comments on commit da1a865

Please sign in to comment.