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
# Deploy a custom container to App Service using GitHub Actions
@@ -182,6 +183,8 @@ Define secrets to use with the Docker Login action. The example in this document
182
183
183
184
## Build the Container image
184
185
186
+
::: zone pivot="github-actions-containers-linux"
187
+
185
188
The following example show part of the workflow that builds a Node.js Docker image. Use [Docker Login](https://github.com/azure/docker-login) to log into a private container registry. This example uses Azure Container Registry but the same action works for other registries.
::: zone pivot="github-actions-containers-windows"
243
+
244
+
The following example shows part of the workflow that builds a Windows Docker image. Use [Docker Login](https://github.com/azure/docker-login) to log into a private container registry. This example uses Azure Container Registry but the same action works for other registries.
You can also use [Docker sign-in](https://github.com/azure/docker-login) to log into multiple container registries at the same time. This example includes two new GitHub secrets for authentication with docker.io. The example assumes that there's a Dockerfile at the root level of the registry.
To deploy your image to a custom container in App Service, use the `azure/webapps-deploy@v2` action. This action has seven parameters:
@@ -248,8 +304,11 @@ To deploy your image to a custom container in App Service, use the `azure/webapp
248
304
| **configuration-file** | (Optional) Applies to Web App Containers only: Path of the Docker-Compose file. Should be a fully qualified path or relative to the default working directory. Required for multi-container apps. |
249
305
| **startup-command** | (Optional) Enter the start-up command. For ex. dotnet run or dotnet filename.dll |
250
306
307
+
::: zone pivot="github-actions-containers-linux"
308
+
251
309
# [Publish profile](#tab/publish-profile)
252
310
311
+
253
312
```yaml
254
313
name: Linux Container Node Workflow
255
314
@@ -362,6 +421,126 @@ jobs:
362
421
az logout
363
422
```
364
423
424
+
::: zone-end
425
+
426
+
::: zone pivot="github-actions-containers-windows"
0 commit comments