Deploy to Sandbox #14
Workflow file for this run
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: Deploy to Sandbox | |
on: | |
workflow_dispatch: | |
inputs: | |
service_acct_username: | |
description: 'Cloud.gov service account username' | |
required: true | |
type: string | |
service_acct_password: | |
description: 'Cloud.gov service account password' | |
required: true | |
type: string | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Cloud Foundry cli | |
id: install-cf-cli | |
run: curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=github" | tar -zx | |
- name: Deploy app to sandbox | |
id: deploy-to-cloudgov-sandbox | |
run: | | |
cat $GITHUB_EVENT_PATH | |
echo $GITHUB_EVENT_PATH | |
SVC_ACCT_PASSWORD=$(jq '.inputs.service_acct_password' $GITHUB_EVENT_PATH) | |
echo 1 = $SVC_ACCT_PASSWORD | |
echo 2 = ${SVC_ACCT_PASSWORD} | |
# echo "::add-mask::${SVC_ACCT_PASSWORD}" | |
# echo SVC_ACCT_PASSWORD=$SVC_ACCT_PASSWORD >> $GITHUB_OUTPUT | |
# ./cf login -a api.fr.cloud.gov -u ${{ github.event.inputs.service_acct_username }} -p $SVC_ACCT_PASSWORD | |
# ./cf push |