-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 1.07 KB
/
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
34
35
36
37
38
39
40
41
---
# This workflow will run unit tests and deploy the application to a
# target environment
name: Deploy
on:
push:
branches:
- main
tags:
- "*"
paths-ignore:
- "**.md" # All markdown files in the repository
jobs:
unit-test:
uses: 18F/identity-idva-gpo/.github/workflows/unit-tests.yaml@main
deploy:
if: github.repository_owner == '18F'
needs: unit-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: 18F/identity-idva-cf-setup@v2
id: cf-setup
with:
cf-username: ${{ secrets.CF_USERNAME }}
cf-password: ${{ secrets.CF_PASSWORD }}
cf-org: ${{ secrets.CF_ORG }}
- name: Deploy application
run: cf push --vars-file vars.yaml
--var ENVIRONMENT=${{ steps.cf-setup.outputs.target-environment }}
--var GPO_USERNAME=${{ secrets.GPO_USERNAME }}
--var GPO_PASSWORD=${{ secrets.GPO_PASSWORD }}
--var GPO_HOST=${{ secrets.GPO_HOST }}
--var GPO_HOSTKEY=${{ secrets.GPO_HOSTKEY }}
--strategy rolling