Skip to content

Upgrade to latest LTS node #490

Upgrade to latest LTS node

Upgrade to latest LTS node #490

Workflow file for this run

#
# this runs against a pre-configured project and environment
# containing some configuration and secrets that are named
# CTTEST_* and cttest.*
#
name: 'demo'
on:
pull_request: {}
push:
branches:
- 'release/*'
tags:
- 'v*'
jobs:
secrets-gate:
runs-on: ubuntu-latest
outputs:
ok: ${{ steps.check-secrets.outputs.ok }}
steps:
- name: check for secrets needed to run demo
id: check-secrets
run: |
if [ ! -z "${{ secrets.CLOUDTRUTH_API_KEY }}" ]; then
echo "ok=true" >>$GITHUB_OUTPUT
fi
demo:
needs:
- secrets-gate
if: ${{ needs.secrets-gate.outputs.ok == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: cloudtruth/configure-action@v2
with:
apikey: "${{ secrets.CLOUDTRUTH_API_KEY }}"
project: "${{ github.repository }}"
environment: staging
- name: demonstrate secrets redaction
run: |
echo CTTEST_NOT_A_SECRET=${CTTEST_NOT_A_SECRET}
echo CTTEST_TOTALLY_A_SECRET=${CTTEST_TOTALLY_A_SECRET}
[ ! -z "${CTTEST_NOT_A_SECRET}" ] || exit 1
[ ! -z "${CTTEST_TOTALLY_A_SECRET}" ] || exit 1
- name: dump the environment
run: |
printenv | sort