File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ env :
2
+ REGISTRY_NAME : {registry-name}
3
+ CLUSTER_NAME : {cluster-name}
4
+ CLUSTER_RESOURCE_GROUP : {resource-group-name}
5
+ NAMESPACE : {namespace-name}
6
+ APP_NAME : {app-name}
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@main
13
+
14
+ # Connect to Azure Container Registry (ACR)
15
+ - uses : azure/docker-login@v1
16
+ with :
17
+ login-server : ${{ env.REGISTRY_NAME }}.azurecr.io
18
+ username : ${{ secrets.REGISTRY_USERNAME }}
19
+ password : ${{ secrets.REGISTRY_PASSWORD }}
20
+
21
+ # Container build and push to a Azure Container Registry (ACR)
22
+ - run : |
23
+ docker build . -t ${{ env.REGISTRY_NAME }}.azurecr.io/${{ env.APP_NAME }}:${{ github.sha }}
24
+ docker push ${{ env.REGISTRY_NAME }}.azurecr.io/${{ env.APP_NAME }}:${{ github.sha }}
25
+ working-directory: ./
You can’t perform that action at this time.
0 commit comments