Skip to content

Commit e879814

Browse files
author
Moussa Ouattara
committed
update
1 parent 8163459 commit e879814

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/helloworld.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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: ./

0 commit comments

Comments
 (0)