You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/deploy-best-practices.md
+17-22Lines changed: 17 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,44 +65,39 @@ App Service has [built-in continuous delivery](deploy-continuous-deployment.md)
65
65
66
66
### Use GitHub Actions
67
67
68
-
You can also automate your container deployment [with GitHub Actions](./deploy-ci-cd-custom-container.md). The workflow file below will build and tag the container with the commit ID, push it to a container registry, and update the specified site slot with the new image tag.
68
+
You can also automate your container deployment [with GitHub Actions](https://github.com/Azure/webapps-deploy). The workflow file below will build and tag the container with the commit ID, push it to a container registry, and update the specified web app with the new image tag.
69
69
70
70
```yaml
71
-
name: Build and deploy a container image to Azure Web Apps
72
-
73
71
on:
74
72
push:
75
73
branches:
76
74
- <your-branch-name>
77
75
76
+
name: Linux_Container_Node_Workflow
77
+
78
78
jobs:
79
79
build-and-deploy:
80
80
runs-on: ubuntu-latest
81
-
82
81
steps:
83
-
- uses: actions/checkout@main
84
-
85
-
-name: Authenticate using a Service Principal
86
-
uses: azure/actions/login@v1
87
-
with:
88
-
creds: ${{ secrets.AZURE_SP }}
82
+
# checkout the repo
83
+
- name: 'Checkout Github Action'
84
+
uses: actions/checkout@main
89
85
90
-
- uses: azure/container-actions/docker-login@v1
86
+
- uses: azure/docker-login@v1
91
87
with:
92
-
username: ${{ secrets.DOCKER_USERNAME }}
93
-
password: ${{ secrets.DOCKER_PASSWORD }}
88
+
login-server: contoso.azurecr.io
89
+
username: ${{ secrets.REGISTRY_USERNAME }}
90
+
password: ${{ secrets.REGISTRY_PASSWORD }}
94
91
95
-
- name: Build and push the image tagged with the git commit hash
0 commit comments