add cd
This commit is contained in:
18
.github/workflows/cd-backend.yml
vendored
18
.github/workflows/cd-backend.yml
vendored
@@ -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 }}
|
||||
|
||||
|
Reference in New Issue
Block a user