Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
5f4f7604ce | ||
|
e10124b261 | ||
|
ccd98ee88d | ||
|
de12672138 |
22
.github/workflows/cd-backend.yml
vendored
22
.github/workflows/cd-backend.yml
vendored
@@ -25,6 +25,22 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_IMAGE_PATH }}:latest
|
tags: ${{ secrets.DOCKER_IMAGE_PATH }}:${{ github.sha }}
|
||||||
cache-from: type=gha
|
cache-from: type=registry,ref=${{ secrets.DOCKER_IMAGE_PATH }}:buildcache
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=registry,ref=${{ secrets.DOCKER_IMAGE_PATH }}:buildcache,mode=max
|
||||||
|
-
|
||||||
|
name: Azure login
|
||||||
|
uses: azure/login@v2
|
||||||
|
with:
|
||||||
|
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
||||||
|
-
|
||||||
|
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