-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 966 Bytes
/
deploy.yaml
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
name: Continuous deployment to cloud.gov
on:
workflow_call:
inputs:
environment:
required: true
type: string
jobs:
deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v3
- name: Configure environment variables
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CG_USERNAME }}
cf_password: ${{ secrets.CG_PASSWORD }}
cf_org: gsa-smartpay
cf_space: ${{ inputs.environment }}
command: >-
bin/cg-set-env.sh ${{ inputs.environment }}
- name: Deploy the application
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CG_USERNAME }}
cf_password: ${{ secrets.CG_PASSWORD }}
cf_org: gsa-smartpay
cf_space: ${{ inputs.environment }}
cf_vars_file: manifest-vars.${{ inputs.environment }}.yml