File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 48
48
context : .
49
49
push : true
50
50
tags : ${{ env.IMAGE_NAME }}:1.${{ github.run_number }},${{ env.IMAGE_NAME }}:latest
51
+
52
+ # Logs in with your Azure credentials
53
+ - name : Azure login
54
+ uses : azure/login@v1.4.6
55
+ with :
56
+ client-id : ${{ secrets.AZURE_CLIENT_ID }}
57
+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
58
+ subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
59
+
60
+ # Builds and pushes an image up to your Azure Container Registry
61
+ - name : Build and push image to ACR
62
+ run : |
63
+ az acr build -t ${{ vars.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ vars.CONTAINER_NAME }}:1.${{ github.run_number }} -t ${{ vars.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ vars.CONTAINER_NAME }}:${{ github.sha }} -t ${{ vars.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ vars.CONTAINER_NAME }}:latest -r ${{ vars.AZURE_CONTAINER_REGISTRY }} -g ${{ vars.RESOURCE_GROUP }} .
You can’t perform that action at this time.
0 commit comments