-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 1.13 KB
/
deploy-to-sandbox.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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