1 Commits
main ... v1.0.2

Author SHA1 Message Date
sparshg
de12672138 add cd 2024-09-26 00:01:37 +05:30

View File

@@ -25,6 +25,20 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ secrets.DOCKER_IMAGE_PATH }}:latest
tags: ${{ secrets.DOCKER_IMAGE_PATH }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
-
name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
-
name: Deploy Container
uses: azure/container-apps-deploy-action@v1
with:
acrName: dockerhub
containerAppName: battleship
resourceGroup: Battleship
imageToDeploy: ${{ secrets.DOCKER_IMAGE_PATH }}:${{ github.sha }}