-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (34 loc) · 955 Bytes
/
deploy.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
35
36
37
38
39
name: Deploy to GOV.UK PaaS
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'security.txt'
- 'thanks.txt'
schedule:
- cron: '0 13 * * 2'
jobs:
deploy-to-paas:
runs-on: ubuntu-latest
environment: live_paas
name: Deploy to GOV.UK PaaS
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: main
- run: |
cd main/
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
sudo apt-get update
sudo apt-get install cf7-cli
cf7 api https://api.cloud.service.gov.uk
cf7 auth "${{ secrets.PAAS_USER }}" "${{ secrets.PAAS_PASS }}"
cf target -o gds-security -s live
make deploy