Skip to content

Step to get secrets #13

Step to get secrets

Step to get secrets #13

Workflow file for this run

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