Skip to main content

alpha.dagger.io/azure/staticwebapp

import "alpha.dagger.io/azure/staticwebapp"

staticwebapp.#StaticWebApp

Create a static web app

staticwebapp.#StaticWebApp Inputs

NameTypeDescription
config.tenantIddagger.#SecretAZURE tenant id
config.subscriptionIddagger.#SecretAZURE subscription id
config.appIddagger.#SecretAZURE app id for the service principal used
config.passworddagger.#SecretAZURE password for the service principal used
rgNamestringResourceGroup name in which to create static webapp
stappLocationstringStaticWebApp location
stappNamestringStaticWebApp name
remotestringGitHubRepository URL
ref*"main" \| stringGitHub Branch
appLocation*"/" \| stringLocation of your application code
buildLocation*"build" \| stringLocation of your build artifacts
authTokendagger.#SecretGitHub Personal Access Token
ctr.image.config.tenantIddagger.#SecretAZURE tenant id
ctr.image.config.subscriptionIddagger.#SecretAZURE subscription id
ctr.image.config.appIddagger.#SecretAZURE app id for the service principal used
ctr.image.config.passworddagger.#SecretAZURE password for the service principal used
ctr.image.image.from"mcr.microsoft.com/azure-cli:2.27.1@sha256:1e117183100c9fce099ebdc189d73e506e7b02d2b73d767d3fc07caee72f9fb1"Remote ref (example: "index.docker.io/alpine:latest")
ctr.image.secret."/run/secrets/appId"dagger.#Secret-
ctr.image.secret."/run/secrets/password"dagger.#Secret-
ctr.image.secret."/run/secrets/tenantId"dagger.#Secret-
ctr.image.secret."/run/secrets/subscriptionId"dagger.#Secret-
ctr.env.AZURE_DEFAULTS_GROUPstring-
ctr.env.AZURE_DEFAULTS_LOCATIONstring-
ctr.env.AZURE_STATICWEBAPP_NAMEstring-
ctr.env.GIT_URLstring-
ctr.env.GIT_BRANCH*"main" \| string-
ctr.env.APP_LOCATION*"/" \| string-
ctr.env.BUILD_LOCATION*"build" \| string-
ctr.secret."/run/secrets/git_pat"dagger.#Secret-

staticwebapp.#StaticWebApp Outputs

NameTypeDescription
defaultHostNamestringDefaultHostName generated by Azure