Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.5.0.beta.1 (sprint 34) #1502

Merged
merged 99 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
0112dbd
Uncommenting logging nulls on database restore to troubleshoot
May 29, 2024
73e3c45
Uncommenting logging nulls on database restore to troubleshoot 2
May 29, 2024
d811d80
Uncommenting logging nulls on database restore to troubleshoot 3
May 29, 2024
5cd113e
Add if statment to database restore script in case file was deleted e…
May 31, 2024
c766ba7
Uncomment lines to hide output again
May 31, 2024
4aa1bdf
PXBF-1345-update-react-test-utils: update uswds and move to dep
scottqueen-bixal Jun 3, 2024
8f8c236
PXBF-1345-update-react-test-utils: update eslint
scottqueen-bixal Jun 3, 2024
9dbdc40
PXBF-1345-update-react-test-utils: update the rest of our node packages
scottqueen-bixal Jun 3, 2024
4763dc8
PXBF-1345-update-react-test-utils: install latest for eslint plugins
scottqueen-bixal Jun 3, 2024
8e76948
Remove uswds version-sync
Jun 3, 2024
5173ed6
PXBF-ensure-prod-checkout: ensure prod checkout when moved
scottqueen-bixal Jun 3, 2024
cb82e17
Merge pull request #1388 from GSA/1345-update-react-test-utils
scottqueen-bixal Jun 4, 2024
1826984
Merge pull request #1390 from GSA/ensure-prod-checkout
scottqueen-bixal Jun 4, 2024
e0a5142
PXBF-1300-migrate-automated-nightly: remove migrated tests
scottqueen-bixal Jun 5, 2024
3657922
Update test-cypress-prod-e2e.yml
scottqueen-bixal Jun 5, 2024
43abc9d
Update test-cypress-prod-e2e.yml
scottqueen-bixal Jun 5, 2024
f32bc4b
Update test-cypress-prod-e2e.yml
scottqueen-bixal Jun 5, 2024
c5cf381
Update test-cypress-prod-e2e.yml
scottqueen-bixal Jun 5, 2024
039e8cc
Merge pull request #1395 from GSA/1300-migrate-automated-nightly
scottqueen-bixal Jun 5, 2024
098f636
Update test-cypress-prod-e2e.yml
scottqueen-bixal Jun 5, 2024
d3b79ad
Update test-cypress-prod-e2e.yml
scottqueen-bixal Jun 5, 2024
e6caed0
Update test-cypress-prod-e2e.yml
scottqueen-bixal Jun 5, 2024
46804be
PXBF-dev: remove old file
scottqueen-bixal Jun 5, 2024
350a5f9
PXBF-dev: create new workflow file for prod links
scottqueen-bixal Jun 5, 2024
d2eed0f
PXBF-870-criteria-cannot-uncheck-haschild-validation: criteria unchec…
gchi25 Jun 5, 2024
123a2b6
Overwrite tome scripts with blank script, changing Branch to dev to test
Jun 6, 2024
d29629f
Overwrite tome scripts with blank script, changing Branch to dev to t…
Jun 6, 2024
b2f90b4
Overwrite tome scripts with blank script, changing Branch to dev to t…
Jun 6, 2024
cd66c8e
Overwrite tome scripts with blank script, changing Branch to dev to t…
Jun 6, 2024
9dfc66d
Overwrite tome scripts with blank script, changing Branch to dev to t…
Jun 6, 2024
a49ec8c
Comfirmed working, now cleanup testing steps, prep for PR
Jun 6, 2024
e3906ea
Comfirmed working, now cleanup testing steps, prep for PR 2
Jun 6, 2024
dbc3054
Merge pull request #1403 from GSA/1393-stop-tome
XavierMetichecchia Jun 6, 2024
ff9678d
Update error message
gchi25 Jun 6, 2024
c05cc13
PXBF-870-criteria-cannot-uncheck-haschild-validation: escape double q…
gchi25 Jun 6, 2024
6891143
PXBF-870-criteria-cannot-uncheck-haschild-validation: Merge branch 'd…
gchi25 Jun 6, 2024
0fb0f40
Merge pull request #1402 from GSA/870-criteria-cannot-uncheck-haschil…
scottqueen-bixal Jun 13, 2024
62674c6
Remove restore
Jun 14, 2024
584a1d1
Try to fix validate command in main by adding quotes
Jun 14, 2024
9103456
PXBF-uncomment-dev-null: uncomment dev null
scottqueen-bixal Jun 20, 2024
50e063b
Merge pull request #1462 from GSA/uncomment-dev-null
scottqueen-bixal Jun 20, 2024
48d1352
Create database backup bastion.
casey-rapnicki-bixal Jun 21, 2024
e5439e4
Merge pull request #1464 from GSA/1330-create-backup-bastion-for-more…
XavierMetichecchia Jun 21, 2024
180f77e
Update backup/restore script bastion name.
casey-rapnicki-bixal Jun 21, 2024
98a17e4
Merge pull request #1465 from GSA/1330-create-backup-bastion-for-more…
XavierMetichecchia Jun 21, 2024
877a960
test
Jun 21, 2024
b354a19
PXBF-1367-zero-benefits-view: include zeroBenefits content
scottqueen-bixal Jun 21, 2024
0961498
Uncomment logging in failing step
Jun 21, 2024
c722b07
PXBF-1367-zero-benefits-view: update content in eligible or not-eligi…
scottqueen-bixal Jun 21, 2024
43529f5
PXBF-1367-zero-benefits-view: updated snaps
scottqueen-bixal Jun 21, 2024
a95b828
Reset database-backup-bastion name secret
Jun 21, 2024
20d6cff
db backup troubleshoot 1
Jun 21, 2024
d3aad12
db backup troubleshoot 2
Jun 21, 2024
6c96bfb
db backup troubleshoot 3
Jun 21, 2024
e620e7f
db backup troubleshoot 4
Jun 21, 2024
605d6ec
db backup troubleshoot 5
Jun 21, 2024
9eac522
PXBF-1452-scale-based-fonts: update fixed size fonts to rem based fonts
scottqueen-bixal Jun 24, 2024
03e6cd2
PXBF-1427-add-search-title-field-in-life-event: remove previous confi…
gchi25 Jun 24, 2024
9bd8b48
PXBF-1427-add-search-title-field-in-life-event: add search title field
gchi25 Jun 24, 2024
409f90c
PXBF-1367-zero-benefits-view: updated a11y to handle new zero benefit…
scottqueen-bixal Jun 24, 2024
486bbd4
PXBF-1367-zero-benefits-view: make content more generic
scottqueen-bixal Jun 24, 2024
c104a9e
PXBF-1367-zero-benefits-view: include datalayer values
scottqueen-bixal Jun 24, 2024
59795f5
PXBF-1480-optimized-deps-config: exclude blocks from storybook optimi…
scottqueen-bixal Jun 24, 2024
894f358
PXBF-1367-zero-benefits-view: Merge branch '1480-optimized-deps-confi…
scottqueen-bixal Jun 24, 2024
917ec47
PXBF-1367-zero-benefits-view: update datalayer state dependencies to …
scottqueen-bixal Jun 24, 2024
2875795
PXBF-1338-no-auto-json-file-in-multi-contents-action: do not generate…
gchi25 Jun 25, 2024
155ddaf
PXBF-1482-structure-data-layer: move our dataLayer init values to an …
scottqueen-bixal Jun 25, 2024
daaaaa9
PXBF-1482-structure-data-layer: create a custom function for handling…
scottqueen-bixal Jun 25, 2024
bbaaeb2
PXBF-1482-structure-data-layer: export dataLayerUtils
scottqueen-bixal Jun 25, 2024
020fbae
PXBF-1482-structure-data-layer: export dataLayerUtils
scottqueen-bixal Jun 25, 2024
5103f4c
PXBF-1482-structure-data-layer: use dataLayerValues for pushing
scottqueen-bixal Jun 25, 2024
96003ac
Merge pull request #1471 from GSA/1367-zero-benefits-view
scottqueen-bixal Jun 25, 2024
47f6edd
Merge pull request #1470 from GSA/1452-scale-based-fonts
scottqueen-bixal Jun 25, 2024
e0c9231
PXBF-1482-structure-data-layer: Merge branch 'dev' of github.com:GSA/…
scottqueen-bixal Jun 25, 2024
9e227f7
PXBF-1482-structure-data-layer: include zero benefits values in dataL…
scottqueen-bixal Jun 25, 2024
16fb6ac
PXBF-1482-structure-data-layer: include zero benefits values in the v…
scottqueen-bixal Jun 25, 2024
653880d
PXBF-1482-structure-data-layer: remove commented lines
scottqueen-bixal Jun 25, 2024
8f77b5e
PXBF-1482-structure-data-layer: spread copy value from dataLayer
scottqueen-bixal Jun 25, 2024
68fd51c
PXBF-1482-structure-data-layer: put condition in front of push effect
scottqueen-bixal Jun 25, 2024
5ae36f6
PXBF-1482-structure-data-layer: import our dataLayerStructure and lev…
scottqueen-bixal Jun 25, 2024
f6828ba
Remove hard coded branch
Jun 26, 2024
bccacd6
Add project env var to bastion step
Jun 26, 2024
0b6040e
PXBF-1466-accordion-datalayer-event: include dataLayer structure for …
scottqueen-bixal Jun 26, 2024
89a8352
PXBF-1466-accordion-datalayer-event: only fire bf_benefit_click event…
scottqueen-bixal Jun 26, 2024
bd7a9c1
PXBF-1467-benefit-link-datalayer-event: add dataLayer structure for b…
scottqueen-bixal Jun 26, 2024
d327de4
PXBF-1467-benefit-link-datalayer-event: handle bf_benefit_link events…
scottqueen-bixal Jun 26, 2024
7cc6c73
Add thog scan 1
Jun 26, 2024
f9c11df
Merge pull request #1489 from GSA/1482-structure-data-layer
scottqueen-bixal Jun 26, 2024
241897a
Add thog scan 2
Jun 26, 2024
4c4ca03
Merge branch 'dev' of https://github.com/GSA/px-benefit-finder into dev
Jun 26, 2024
de9d648
Add thog scan 3
Jun 26, 2024
55b569d
Add thog scan 4
Jun 26, 2024
202d052
PXBF-1427-add-search-title-field-in-life-event: put previous configur…
gchi25 Jun 26, 2024
df31db2
Merge pull request #1472 from GSA/1427-add-search-title-field-in-life…
scottqueen-bixal Jun 26, 2024
3814fa8
Merge branch 'main' into dev
scottqueen-bixal Jun 27, 2024
5bbb6d0
Merge pull request #1491 from GSA/1467-benefit-link-datalayer-event
scottqueen-bixal Jun 27, 2024
251f459
Merge pull request #1483 from GSA/1338-no-auto-json-file-in-multi-con…
scottqueen-bixal Jun 27, 2024
03e5585
PXBF-PXBF-fix-lint-error: fix lint error
gchi25 Jun 27, 2024
62f772c
Merge pull request #1506 from GSA/PXBF-fix-lint-error
scottqueen-bixal Jun 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 40 additions & 40 deletions .github/workflows/build-and-deploy-main-waf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update Main WAF

on:
schedule:
- cron: '0 5 * * 4'
- cron: "0 5 * * 4"

jobs:
checkVersion:
Expand All @@ -19,15 +19,15 @@ jobs:
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: '${{ secrets.CF_USER }}'
CF_PASSWORD: '${{ secrets.CF_PASSWORD }}'
CF_ORG: '${{ secrets.CF_ORG }}'
PROJECT: '${{ secrets.PROJECT }}'
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
run: source ./scripts/pipeline/cloud-gov-login.sh
- name: Check version
id: version
env:
PROJECT: '${{ secrets.PROJECT }}'
PROJECT: "${{ secrets.PROJECT }}"
run: |
ubuntu_version=${{ vars.UBUNTU_VERSION }}
modsecurity_nginx_version=${{ vars.MODSECURITY_NGINX_VERSION }}
Expand All @@ -54,44 +54,44 @@ jobs:
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: '${{ secrets.CF_USER }}'
CF_PASSWORD: '${{ secrets.CF_PASSWORD }}'
CF_ORG: '${{ secrets.CF_ORG }}'
PROJECT: '${{ secrets.PROJECT }}'
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BACKEND_SPACE: '${{ secrets.TF_BACKEND_SPACE }}'
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
TF_BASTION: "${{ secrets.TF_BASTION }}"
TF_BACKEND_SPACE: "${{ secrets.TF_BACKEND_SPACE }}"
run: |
source ./scripts/pipeline/cloud-gov-login.sh
cf target -s "${TF_BACKEND_SPACE}" >/dev/null 2>&1
- name: Start Bastion
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: |
cf start "${TF_BASTION}" >/dev/null 2>&1
./scripts/pipeline/cloud-gov-wait-for-app-start.sh "${TF_BASTION}"
- name: Cloud.gov bastion git checkout
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: |
declare -a commands=("rm -rf px-benefit-finder" "git clone https://github.com/GSA/px-benefit-finder.git && cd px-benefit-finder && git checkout ${BRANCH}")
for command in "${commands[@]}"; do
./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "${command}" 1
done
- name: Build nginx WAF Plugin
env:
ubuntu_version: '${{ vars.UBUNTU_VERSION }}'
modsecurity_nginx_version: '${{ vars.MODSECURITY_NGINX_VERSION }}'
ubuntu_version: "${{ vars.UBUNTU_VERSION }}"
modsecurity_nginx_version: "${{ vars.MODSECURITY_NGINX_VERSION }}"
new_nginx_version: ${{ needs.checkVersion.outputs.new_nginx_version }}
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: |
source ./scripts/pipeline/terraform-build-waf-plugin.sh
- name: Configure Terraform
env:
CF_USER: '${{ secrets.CF_USER }}'
CF_PASSWORD: '${{ secrets.CF_PASSWORD }}'
CF_ORG: '${{ secrets.CF_ORG }}'
PROJECT: '${{ secrets.PROJECT }}'
TF_BASTION: '${{ secrets.TF_BASTION }}'
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: |
CWD=$(pwd)
cd terraform/infra
Expand All @@ -100,32 +100,32 @@ jobs:
cd "${CWD}"
- name: Terraform Init
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
id: init
run : ./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "tofu -chdir=px-benefit-finder/terraform/infra init" 1
run: ./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "tofu -chdir=px-benefit-finder/terraform/infra init" 1
- name: Terraform Validate
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
id: validate
run : |
stdout=$(./scripts/pipeline/cloud-gov-remote-command.sh ${TF_BASTION} "TF_WORKSPACE=${BRANCH} tofu -chdir=px-benefit-finder/terraform/infra validate -no-color" 1)
run: |
stdout=$(./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "TF_WORKSPACE=${BRANCH} tofu -chdir=px-benefit-finder/terraform/infra validate -no-color" 1)
stdout=$(echo $stdout | sed '$ d')
echo ${stdout}
echo "stdout=${stdout}" >> $GITHUB_OUTPUT
- name: Terraform Plan
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
id: plan
run : |
run: |
stdout=$(./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "TF_WORKSPACE=${BRANCH} tofu -chdir=px-benefit-finder/terraform/infra plan -no-color" 1)
stdout=$(echo $stdout | sed '$ d')
echo ${stdout}
echo "stdout=${stdout}" >> $GITHUB_OUTPUT
- name: Terraform Apply
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
id: apply
run : |
run: |
stdout=$(./scripts/pipeline/cloud-gov-remote-command.sh "${TF_BASTION}" "TF_WORKSPACE=${BRANCH} tofu -chdir=px-benefit-finder/terraform/infra apply -auto-approve" 1)
stdout=$(echo $stdout | sed '$ d')
echo ${stdout}
Expand All @@ -139,15 +139,15 @@ jobs:
title: "Update to NGINX v${{ needs.checkVersion.outputs.new_nginx_version }} (main)"
body: |
## Automated update of NGINX WAF

This is an automated build and deploy of the NGINX WAF application in main.

Build pack: ${{ needs.checkVersion.outputs.current_bp_version }} => ${{ needs.checkVersion.outputs.new_bp_version }}
NGINX: ${{ needs.checkVersion.outputs.current_nginx_version }} => ${{ needs.checkVersion.outputs.new_nginx_version }}

#### Terraform Initialization ⚙`${{ steps.init.outcome }}`
#### Terraform Validation 🤖`${{ steps.validate.outcome }}`

<details><summary>Validation Output</summary>

```
Expand Down Expand Up @@ -189,16 +189,16 @@ jobs:
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: '${{ secrets.CF_USER }}'
CF_PASSWORD: '${{ secrets.CF_PASSWORD }}'
CF_ORG: '${{ secrets.CF_ORG }}'
PROJECT: '${{ secrets.PROJECT }}'
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BACKEND_SPACE: '${{ secrets.TF_BACKEND_SPACE }}'
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
TF_BASTION: "${{ secrets.TF_BASTION }}"
TF_BACKEND_SPACE: "${{ secrets.TF_BACKEND_SPACE }}"
run: |
source ./scripts/pipeline/cloud-gov-login.sh
cf target -s "${TF_BACKEND_SPACE}" >/dev/null 2>&1
- name: Stop Bastion
env:
TF_BASTION: '${{ secrets.TF_BASTION }}'
TF_BASTION: "${{ secrets.TF_BASTION }}"
run: cf stop "${TF_BASTION}" >/dev/null 2>&1
50 changes: 49 additions & 1 deletion .github/workflows/database-backup-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
required: true
PROJECT:
required: true
DATABASE_BACKUP_BASTION_NAME:
required: true
schedule:
- cron: "0 0 * * *"

Expand All @@ -31,15 +33,61 @@ jobs:
run: ./scripts/pipeline/deb-mysql-client-install.sh
- name: Install Cloudfoundry CLI
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
run: |
source ./scripts/pipeline/cloud-gov-login.sh
- name: Start Bastion
env:
DATABASE_BACKUP_BASTION_NAME: "${{ secrets.DATABASE_BACKUP_BASTION_NAME }}"
PROJECT: "${{ secrets.PROJECT }}"
run: |
echo "BRANCH=dev" >> $GITHUB_ENV
cf start "${PROJECT}-${DATABASE_BACKUP_BASTION_NAME}-${BRANCH}" >/dev/null 2>&1
./scripts/pipeline/cloud-gov-wait-for-app-start.sh "${PROJECT}-${DATABASE_BACKUP_BASTION_NAME}-${BRANCH}"
- name: Backup Database (dev)
id: backup
shell: bash
env:
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
DATABASE_BACKUP_BASTION_NAME: "${{ secrets.DATABASE_BACKUP_BASTION_NAME }}"
run: |
export TIMESTAMP=$(date --utc +%FT%TZ | tr ':', '-')
source ./scripts/pipeline/cloud-gov-login.sh
source ./scripts/pipeline/database-backup.sh
source ./scripts/pipeline/s3-backup-upload.sh
stopBastion:
name: Stop Bastion
runs-on: ubuntu-latest
needs: backup-database
if: ${{ always() }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set env.BRANCH
run: echo "BRANCH=dev" >> $GITHUB_ENV
- name: Install basic dependancies
run: ./scripts/pipeline/deb-basic-deps.sh
- name: Install Cloudfoundry CLI
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
run: |
source ./scripts/pipeline/cloud-gov-login.sh
- name: Stop Bastion
env:
PROJECT: "${{ secrets.PROJECT }}"
DATABASE_BACKUP_BASTION_NAME: "${{ secrets.DATABASE_BACKUP_BASTION_NAME }}"
run: |
echo "BRANCH=dev" >> $GITHUB_ENV
cf stop "${PROJECT}-${DATABASE_BACKUP_BASTION_NAME}-${BRANCH}" >/dev/null 2>&1
63 changes: 56 additions & 7 deletions .github/workflows/database-backup-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ on:
required: true
PROJECT:
required: true
DATABASE_BACKUP_BASTION_NAME:
required: true
schedule:
- cron: '0 1 * * *'
- cron: "0 1 * * *"

jobs:
backup-database:
Expand All @@ -31,15 +33,62 @@ jobs:
run: ./scripts/pipeline/deb-mysql-client-install.sh
- name: Install Cloudfoundry CLI
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
run: |
source ./scripts/pipeline/cloud-gov-login.sh
- name: Start Bastion
env:
DATABASE_BACKUP_BASTION_NAME: "${{ secrets.DATABASE_BACKUP_BASTION_NAME }}"
PROJECT: "${{ secrets.PROJECT }}"
run: |
echo "BRANCH=main" >> $GITHUB_ENV
cf start "${PROJECT}-${DATABASE_BACKUP_BASTION_NAME}-${BRANCH}" >/dev/null 2>&1
./scripts/pipeline/cloud-gov-wait-for-app-start.sh "${PROJECT}-${DATABASE_BACKUP_BASTION_NAME}-${BRANCH}"
- name: Backup Database (main)
id: backup
shell: bash
env:
CF_USER: '${{ secrets.CF_USER }}'
CF_PASSWORD: '${{ secrets.CF_PASSWORD }}'
CF_ORG: '${{ secrets.CF_ORG }}'
PROJECT: '${{ secrets.PROJECT }}'
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
DATABASE_BACKUP_BASTION_NAME: "${{ secrets.DATABASE_BACKUP_BASTION_NAME }}"
run: |
export TIMESTAMP=$(date --utc +%FT%TZ | tr ':', '-')
source ./scripts/pipeline/cloud-gov-login.sh
source ./scripts/pipeline/database-backup.sh
source ./scripts/pipeline/s3-backup-upload.sh
source ./scripts/pipeline/s3-backup-upload.sh
stopBastion:
name: Stop Bastion
runs-on: ubuntu-latest
needs: backup-database
if: ${{ always() }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set env.BRANCH
run: echo "BRANCH=main" >> $GITHUB_ENV
- name: Install basic dependancies
run: ./scripts/pipeline/deb-basic-deps.sh
- name: Install Cloudfoundry CLI
run: ./scripts/pipeline/deb-cf-install.sh
- name: Cloud.gov login
env:
CF_USER: "${{ secrets.CF_USER }}"
CF_PASSWORD: "${{ secrets.CF_PASSWORD }}"
CF_ORG: "${{ secrets.CF_ORG }}"
PROJECT: "${{ secrets.PROJECT }}"
run: |
source ./scripts/pipeline/cloud-gov-login.sh
- name: Stop Bastion
env:
DATABASE_BACKUP_BASTION_NAME: "${{ secrets.DATABASE_BACKUP_BASTION_NAME }}"
PROJECT: "${{ secrets.PROJECT }}"
run: |
echo "BRANCH=main" >> $GITHUB_ENV
cf stop "${PROJECT}-${DATABASE_BACKUP_BASTION_NAME}-${BRANCH}" >/dev/null 2>&1

Loading
Loading