Skip to content

Commit

Permalink
[CD][Hai] brush up
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiHungNguyenn committed Feb 3, 2024
1 parent 213e827 commit 15a4e10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish docker images
name: Publish docker images and Deploy to Azure

on:
push:
Expand Down Expand Up @@ -68,5 +68,5 @@ jobs:
${{ secrets.AZURE_VM_USERNAME }}@${{ secrets.AZURE_VM_IP_ADDRESS }} \
'docker ps -q | xargs -r docker stop &&
docker container prune -f &&
docker pull ghcr.io/swd392-domus/domus-api:${{ needs.publish.outputs.version }} &&
docker run -d -p 443:80 ghcr.io/swd392-domus/domus-api:${{ needs.publish.outputs.version }}'
docker pull &{{ env.IMAGE_NAME}}:${{ needs.publish.outputs.version }} &&
docker run -d -p 443:80 ${{ env.IMAGE_NAME }}:${{ needs.publish.outputs.version }}'

0 comments on commit 15a4e10

Please sign in to comment.