feat: Azure ACR push and WebApp deployment for terrain-gpu-demo#17
Merged
Conversation
- Triggers on push to main - Uses workload identity federation (OIDC), no stored secrets - az acr login for ephemeral ACR token (no username/password) - Pushes image to maxfelkershared.azurecr.io/terrain-gpu - Deploys to terrain-gpu-demo Azure WebApp Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- App Service Plan ASP-terrain-gpu (B1 Linux) - WebApp terrain-gpu-demo with system-assigned managed identity - AcrPull role assignment for MI on maxfelkershared ACR - No secrets: uses managed identity for ACR auth at runtime Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Azure Bicep BCP139 requires cross-resource-group role assignments to use modules scoped to the target RG. Extracted the AcrPull assignment on maxfelkershared ACR into .azure/acr-role.bicep. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Azure infrastructure and CI/CD pipeline to build, push, and deploy the terrain-webgpu Docker image to a new terrain-gpu-demo Azure WebApp.
What's included
.azure/— Bicep infrastructuremain.bicep— defines:ASP-terrain-gpu(B1, Linux)terrain-gpu-demowith system-assigned managed identitymaxfelkersharedACR for the managed identity (no stored credentials at runtime)main.bicepparam— deployment parametersREADME.md— documents layout andaz deployment group createusage.github/workflows/deploy.yml— Deploy workflowTriggers on push to
main. Uses OIDC workload identity federation — no stored secrets or client passwords:azure/login@v2withAZURE_CLIENT_ID/AZURE_TENANT_ID/AZURE_SUBSCRIPTION_IDaz acr loginfor ephemeral ACR token (no username/password)maxfelkershared.azurecr.io/terrain-gpu:${{ github.sha }}+:latestterrain-gpu-demoinmaxfelker.comresource groupSecurity
AZURE_CLIENT_ID,AZURE_TENANT_ID,AZURE_SUBSCRIPTION_IDDeploy infrastructure (one-time)