Skip to content

Commit

Permalink
chore: 도커 미사용 리소스 삭제 명령어 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
uwoobeat committed Nov 29, 2023
1 parent 7969b21 commit fc7bd4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/develop_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,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: ${{ steps.github-sha-short.outputs.sha }}
with:
host: ${{ secrets.NCP_HOST }}
username: tenminute
Expand All @@ -94,5 +94,6 @@ jobs:
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 compose -f /home/tenminute/docker-compose.yaml up -d
docker system prune -a -f
# docker stop server-spring && docker rm server-spring
# docker run -d --name server-spring -p 8080:8080 -d ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring:${{ needs.build.outputs.sha }}

0 comments on commit fc7bd4b

Please sign in to comment.