Scale up app service plan #158
This file contains 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
name: Scale up app service plan | |
on: | |
schedule: | |
- cron: "15 5 * * 1-5" # UTC Time | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
environment: prd | |
steps: | |
- name: Azure Login | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Upscale in hours | |
uses: azure/CLI@v1 | |
with: | |
azcliversion: 2.42.0 | |
inlineScript: | | |
az appservice plan update --resource-group ${{ vars.AZURE_RESOURCE_GROUP }} --name ${{ vars.AZURE_APPSERVICE_PLAN_NAME }} --sku B2 |