Step to get secrets #13
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: Configure target hosts and deploy app to idle slot | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy-linode: | |
environment: LinodeWorld1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Write environment to global variables | |
shell: bash | |
run: | | |
echo JJ_AZ_APP_ID=${{ vars.JJ_AZ_APP_ID }} >> "$GITHUB_ENV" | |
echo JJ_AZ_SECRET=${{ secrets.JJ_AZ_SECRET }} >> "$GITHUB_ENV" | |
echo JJ_AZ_TENANT_ID=${{ vars.JJ_AZ_TENANT_ID }} >> "$GITHUB_ENV" | |
- name: (Sanity) echo back environment | |
shell: pwsh | |
run: Write-Host $($Env:JJ_AZ_SECRET.length -gt 0) $Env:JJ_AZ_APP_ID $Env:JJ_AZ_TENANT_ID | |
- name: Connect Azure account | |
shell: pwsh | |
run: | | |
ls | |
ls ./cicd | |
./cicd/PS-Connect-AZ-Account.ps1 |