tsubakimoto / github-actions-samples

Playground for GitHub Actions
https://tsubakimoto.github.io/github-actions-samples/
MIT License
12 stars 1 forks source link

デプロイ先のWeb Appを分割する #83

Open tsubakimoto opened 2 months ago

tsubakimoto commented 2 months ago

TODO

Apps

References

tsubakimoto commented 2 months ago
APP_NAME_PREFIX=
APP_NAME_SUFFIX=.azurewebsites.net
GROUP_NAME=
HOST_NAME_PREFIX=gha-
HOST_NAME_SUFFIX=
THUMBPRINT=

LANGS=("cakephp" "django" "dotnet6" "dotnet7" "dotnet8" "express" "fastapi" "laravel" "nuxtjs" "php")
for lang in ${LANGS[@]}; do
    az webapp config hostname add \
        --webapp-name $APP_NAME_PREFIX$lang \
        --resource-group $GROUP_NAME \
        --hostname $HOST_NAME_PREFIX$lang$HOST_NAME_SUFFIX
    az webapp config ssl bind \
        --certificate-thumbprint $THUMBPRINT \
        --name $APP_NAME_PREFIX$lang \
        --resource-group $GROUP_NAME \
        --ssl-type SNI
    az webapp config set \
        --name $APP_NAME_PREFIX$lang \
        --resource-group $GROUP_NAME \
        --always-on true
done