2 Create and Set Keys #3
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: 2 Create and Set Keys | |
on: workflow_dispatch | |
env: | |
AZURE_REGION: eastus | |
AZURE_RG: oa-poc-rg | |
APP_CONFIGURATION_NAME: oaappconfig02 | |
MESSAGE: OA was here. V1.0 | |
jobs: | |
set-key-appconfig: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout code | |
- uses: actions/checkout@main | |
# Log into Azure | |
- uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Set Keys | |
uses: azure/CLI@v1 | |
with: | |
inlineScript: | | |
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod2:Settings:BackgroundColor --value red --yes | |
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod2:Settings:FontColor --value white --yes | |
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod2:Settings:FontSize --value 20 --yes | |
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod1:Settings:Message --value \"${{ env.MESSAGE }}\" --yes | |
az appconfig kv set -n ${{ env.APP_CONFIGURATION_NAME }} --key Pod1:Settings:Sentinel --value 2 --yes |