Deploy and update security.txt #126
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 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 |