Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
338 commits
Select commit Hold shift + click to select a range
445b4c5
Setting civiform version to v1.43.0
gwendolyngoetz Nov 29, 2023
5c20dde
Merge branch 'civiform:main' into main
gwendolyngoetz Nov 29, 2023
11ce5fd
Temp add DURABLE_JOBS_POLL_INTERVAL_SECONDS to long value
gwendolyngoetz Nov 29, 2023
79c1514
Remove durable job temp setting
gwendolyngoetz Nov 30, 2023
e54b843
Updating prod version. Enable applicant visible languages
gwendolyngoetz Nov 30, 2023
2e657c4
Enable applicant visible languages
gwendolyngoetz Nov 30, 2023
252370e
Updating test civiform version
gwendolyngoetz Dec 5, 2023
893bd74
Updating comment
gwendolyngoetz Dec 6, 2023
04d3932
Updating civic entity short name for different environments
gwendolyngoetz Dec 6, 2023
5d53e9e
Pull CIVIC_ENTITY_SHORT_NAME value for probers from env settings
gwendolyngoetz Dec 6, 2023
4dd3e0f
Enable caching of version, program, and questions
gwendolyngoetz Dec 11, 2023
f17cd5e
Updating test/prod version to v1.45
gwendolyngoetz Dec 13, 2023
acad5e2
Cleanup
gwendolyngoetz Dec 18, 2023
a7c9d8e
Cleanup
gwendolyngoetz Dec 18, 2023
61314e8
Adding NEW_APPLICANT_URL_SCHEMA_ENABLED feature flag
gwendolyngoetz Dec 18, 2023
91a52f3
Update civiform_config.staging.sh
gwendolyngoetz Jan 4, 2024
a80a1dc
Re-enable New applicant url format
gwendolyngoetz Jan 6, 2024
bac4bbe
Disable NEW_APPLICANT_URL_SCHEMA_ENABLED
gwendolyngoetz Jan 8, 2024
30f1824
Update civiform_config.staging.sh
gwendolyngoetz Jan 8, 2024
ac6cbc6
Update prod staging url
gwendolyngoetz Jan 9, 2024
2a0932f
Adding UNIVERSAL_QUESTIONS flag to config files
gwendolyngoetz Jan 10, 2024
8785091
Adding script to test gis status
gwendolyngoetz Jan 12, 2024
56727f8
Create test_gis.yml
gwendolyngoetz Jan 12, 2024
3017a93
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
f877558
Clean up and change value to test
gwendolyngoetz Jan 12, 2024
3265e8b
Clean up and change value to test
gwendolyngoetz Jan 12, 2024
5a2931f
Merge branch 'main' of github.com:seattle-civiform/civiform-deploy-tf
gwendolyngoetz Jan 12, 2024
d6aa03a
Test test back to passing
gwendolyngoetz Jan 12, 2024
a9ddba1
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
5f11a8d
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
8bd19d3
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
dc3137a
Update test_gis.sh
gwendolyngoetz Jan 12, 2024
a8ce75f
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
652b644
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
bdb198c
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
596b3ec
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
dee1c39
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
40dfaee
Update test_gis.yml
gwendolyngoetz Jan 12, 2024
4b84e8a
Update test_gis.sh
gwendolyngoetz Jan 12, 2024
7f119b7
Updating prod/test configs to use v1.46.0
gwendolyngoetz Jan 16, 2024
36b38d2
Ignore tar files
gwendolyngoetz Jan 22, 2024
4de3b72
Adding IDCS_DISCOVERY_URI
gwendolyngoetz Jan 24, 2024
e74e79d
Updating staging auth location. Testing.
gwendolyngoetz Jan 24, 2024
0290bf7
Adding IDCS_DISCOVERY_URI to deal with configuration issues
gwendolyngoetz Jan 24, 2024
3509f74
Updating to version v1.48.0
gwendolyngoetz Jan 24, 2024
a4e0e72
Removing IDCS_DISCOVERY_URI
gwendolyngoetz Jan 24, 2024
d2ba86b
Update slackapi/slack-github-action action to v1.25.0
renovate[bot] Jan 26, 2024
c2f091b
Updating fargate min count
gwendolyngoetz Jan 30, 2024
34d4972
Adding min scale target
gwendolyngoetz Jan 30, 2024
9126234
Merge branch 'civiform:main' into main
gwendolyngoetz Jan 30, 2024
43aad9c
Merge pull request #4 from seattle-civiform/renovate/slackapi-slack-g…
gwendolyngoetz Jan 30, 2024
b4c8c6a
Setting staging retention days to 3
gwendolyngoetz Feb 1, 2024
90a769b
Setting test db retention to 5 days. Add the default for prod.
gwendolyngoetz Feb 1, 2024
840034a
Update test civiform versio to v1.50.0
gwendolyngoetz Feb 6, 2024
4b30bb4
Update prod civiform version to v1.50.0
gwendolyngoetz Feb 6, 2024
dd4e345
Merge branch 'civiform:main' into main
gwendolyngoetz Feb 13, 2024
4e8d9b9
Fix name of support email variable
gwendolyngoetz Feb 15, 2024
0148d1c
Enable metrics in Prod
gwendolyngoetz Feb 22, 2024
2ef427e
Updating flags
gwendolyngoetz Feb 22, 2024
b911df9
Update test staging hostname
gwendolyngoetz Feb 22, 2024
c6d1d0d
Updating test civiform version
gwendolyngoetz Feb 22, 2024
dd236a3
Updating prod version
gwendolyngoetz Feb 22, 2024
a9f9f48
Update deploy.yml
gwendolyngoetz Feb 27, 2024
650d54b
Updating ssl arn
gwendolyngoetz Feb 29, 2024
384ea4f
Updating ssl cert arn and updated the version for test and prod.
gwendolyngoetz Feb 29, 2024
c2ef783
Update artifact path
gwendolyngoetz Mar 5, 2024
f0095ef
Updating to v1.54.0
gwendolyngoetz Mar 11, 2024
b523602
Merge branch 'main' of github.com:seattle-civiform/civiform-deploy-tf
gwendolyngoetz Mar 11, 2024
56b9d2f
Merge branch 'civiform:main' into main
gwendolyngoetz Mar 15, 2024
a6b0d2b
Mount test tmp volume
gwendolyngoetz Mar 15, 2024
77ec771
Update test/prod configs to v1.56.0
gwendolyngoetz Mar 20, 2024
f3ff1c1
Update civiform_config.prod.sh
gwendolyngoetz Mar 26, 2024
6c9015a
Update civiform_config.staging.sh
gwendolyngoetz Mar 26, 2024
4f2be9c
Update civiform_config.test.sh
gwendolyngoetz Mar 26, 2024
84120e7
update var name
rockycodes Apr 2, 2024
77d3965
Merge pull request #6 from rockycodes/patch-1
gwendolyngoetz Apr 2, 2024
e060cd7
Don't run northstar tests
gwendolyngoetz Apr 4, 2024
e808843
Update test to v1.57
gwendolyngoetz Apr 4, 2024
e330cce
Set artifact retention and paths
gwendolyngoetz Apr 4, 2024
61bb7ff
Remove video flag
gwendolyngoetz Apr 4, 2024
ebc5b4a
Update prod config to use v1.57.0
gwendolyngoetz Apr 4, 2024
78f470c
Merge branch 'civiform:main' into main
gwendolyngoetz Apr 9, 2024
f8cc8ba
Temp. Set version to custom build
gwendolyngoetz Apr 9, 2024
0fbab5b
Temp. Adding second url
gwendolyngoetz Apr 9, 2024
5d38983
Temp: Update tests version
gwendolyngoetz Apr 10, 2024
c46643d
Staging config back to normal
gwendolyngoetz Apr 10, 2024
6d8c7f5
Update to v1.59.0
gwendolyngoetz Apr 12, 2024
a71a59c
Update prod to v1.59.0
gwendolyngoetz Apr 12, 2024
d048a94
Enable arcgis
gwendolyngoetz Apr 18, 2024
d2a6547
Update slackapi/slack-github-action action to v1.26.0
renovate[bot] Apr 19, 2024
4675bf5
Testing Play 2
gwendolyngoetz Apr 19, 2024
96fdced
Set staging deploy to latest
gwendolyngoetz Apr 25, 2024
47b1c47
Set cloud deploy version to match civiform version
gwendolyngoetz Apr 25, 2024
78b2fd1
Adding script to cleanup pgadmin temp secrets
gwendolyngoetz Apr 29, 2024
a43c2d6
testing play2
gwendolyngoetz Apr 30, 2024
b570b3a
Update test config to v1.61.0
gwendolyngoetz Apr 30, 2024
385b954
Update prod config to v1.61.0
gwendolyngoetz Apr 30, 2024
8a46483
Set test to v1.62.0
gwendolyngoetz Apr 30, 2024
d555ab1
Set prod to v1.62.0
gwendolyngoetz Apr 30, 2024
2c5398d
Staging play2.9
gwendolyngoetz May 1, 2024
6a926fc
Play2.9 Test on Test
gwendolyngoetz May 1, 2024
cdaa12b
Merge pull request #7 from seattle-civiform/renovate/slackapi-slack-g…
gwendolyngoetz May 2, 2024
83a1c21
Disable probers on staging
gwendolyngoetz May 7, 2024
7191f16
Set staging version to latest
gwendolyngoetz May 7, 2024
6a53c23
Adding color to output of gis test script
gwendolyngoetz May 7, 2024
fa785ce
update test to v 1.63.0
gwendolyngoetz May 7, 2024
84bebe2
Updating esri urls for test
gwendolyngoetz May 8, 2024
f22e8d4
Updating version and esri urls for prod
gwendolyngoetz May 8, 2024
37be4d5
Disable automated probers
gwendolyngoetz May 15, 2024
4e22c55
Update civiform_config.test.sh
gwendolyngoetz May 16, 2024
58687a4
Removing settings that don't belong here
gwendolyngoetz May 22, 2024
dcd7f0b
Deploy specific version
gwendolyngoetz May 22, 2024
448f303
Update to v2.0.1
gwendolyngoetz May 23, 2024
c7ae6d3
Set staging back to latest
gwendolyngoetz May 23, 2024
721d50a
Set to v2.0.1
gwendolyngoetz May 23, 2024
174c8f4
set wkid
gwendolyngoetz May 23, 2024
99082bd
Update run-prober to set CI value
gwendolyngoetz May 28, 2024
a9addc8
cleanup whitespace
gwendolyngoetz Jun 5, 2024
c831468
Set prod postgres version
gwendolyngoetz Jun 5, 2024
6588440
Update test and prod to v2.1.0
gwendolyngoetz Jun 11, 2024
a6c189d
fmt
gwendolyngoetz Jun 11, 2024
037d873
fmt
gwendolyngoetz Jun 11, 2024
07af724
Re-add settings needed for staging since it gets wiped all the time
gwendolyngoetz Jun 11, 2024
8bd79c6
allow admin writeable from staging
gwendolyngoetz Jun 11, 2024
152940d
Set staging domain name for test
gwendolyngoetz Jun 11, 2024
a836d53
Putting staging url back
gwendolyngoetz Jun 11, 2024
fd3e835
Update test to use bug fixed version
gwendolyngoetz Jun 12, 2024
06bd328
Updating for fix
gwendolyngoetz Jun 12, 2024
c870a67
Set prod to use release with fix in it
gwendolyngoetz Jun 13, 2024
3c5967a
Adding api tests
gwendolyngoetz Jun 13, 2024
b52d3db
Create test_api.yml
gwendolyngoetz Jun 13, 2024
fd10f2d
Update test_api.yml
gwendolyngoetz Jun 13, 2024
2dc4615
Update test_api.yml
gwendolyngoetz Jun 13, 2024
42fa338
Update test_api.yml
gwendolyngoetz Jun 13, 2024
4b3f0d0
Update test_api.yml
gwendolyngoetz Jun 13, 2024
3b5e45e
Update dependency typescript to v5.5.3
renovate[bot] Jul 8, 2024
a38de25
Update version to v2.4.0
gwendolyngoetz Jul 9, 2024
3036ec7
Updating config files version
gwendolyngoetz Jul 9, 2024
14d91fc
Update dependency @playwright/test to v1.45.2
renovate[bot] Jul 16, 2024
b902d22
Use specific version
gwendolyngoetz Jul 16, 2024
3f01d59
Merge pull request #10 from seattle-civiform/renovate/playwright-mono…
gwendolyngoetz Jul 17, 2024
c9b5470
Merge pull request #9 from seattle-civiform/renovate/typescript-5.x
gwendolyngoetz Jul 17, 2024
41be8a6
Update dependency @types/node to v20.14.11
renovate[bot] Jul 17, 2024
ad17607
Merge pull request #8 from seattle-civiform/renovate/node-20.x
gwendolyngoetz Jul 17, 2024
b4991d6
Update version
gwendolyngoetz Jul 17, 2024
96ddc9e
Set staging back to latest
gwendolyngoetz Jul 17, 2024
8271b3b
Update civiform_config.test.sh
swatkat1 Jul 18, 2024
6fd8a3b
Update civiform_config.prod.sh
swatkat1 Jul 18, 2024
4a70b17
Testing applicant oidc email attribute
gwendolyngoetz Jul 19, 2024
90668f3
Testing OIDC email
gwendolyngoetz Jul 19, 2024
36d1830
done testing idcs for now
gwendolyngoetz Jul 19, 2024
d39849b
Update staging whitelabel settings
gwendolyngoetz Jul 30, 2024
64cb9aa
Update test conf to v2.5.0
gwendolyngoetz Jul 30, 2024
86ee6f0
Update prod config to v2.5.0
gwendolyngoetz Jul 30, 2024
1661ba0
Set version for release testing
gwendolyngoetz Aug 6, 2024
d0ce506
Testing branch
gwendolyngoetz Aug 7, 2024
380a3e5
Put staging back to using latest
gwendolyngoetz Aug 7, 2024
96f4b17
staging use SNAPSHOT-1b284bf-1723565229
gwendolyngoetz Aug 13, 2024
f63a5a9
Testing tests
gwendolyngoetz Aug 13, 2024
db3d4d7
Revert last testing changes
gwendolyngoetz Aug 13, 2024
944134b
v2.7.0
gwendolyngoetz Aug 20, 2024
39ba5c0
Update to v2.7.0
gwendolyngoetz Aug 20, 2024
452fb16
update to v2.8.0
gwendolyngoetz Aug 20, 2024
bb9a740
update
gwendolyngoetz Aug 27, 2024
043c367
Update civiform_config.staging.sh
gwendolyngoetz Aug 27, 2024
43bdb5e
Set staging back to latest
gwendolyngoetz Aug 27, 2024
cca58cd
Update test to v2.9.0
gwendolyngoetz Aug 27, 2024
6e40f1c
set prod to v2.9.0
gwendolyngoetz Aug 28, 2024
71a4e58
CSP
gwendolyngoetz Aug 28, 2024
392d62f
Update slackapi/slack-github-action action to v1.27.0
renovate[bot] Aug 28, 2024
b2b5fa0
Set test to v2.11.0
gwendolyngoetz Sep 11, 2024
bf011d3
Updating to v2.11.0
gwendolyngoetz Sep 11, 2024
6a9b657
Enforce CSP
gwendolyngoetz Sep 11, 2024
0f160b9
Merge branch 'civiform:main' into main
gwendolyngoetz Sep 17, 2024
7b292c1
Adding more service area examples
gwendolyngoetz Sep 17, 2024
6230ece
Pushing test img to staging
gwendolyngoetz Sep 17, 2024
d6bcca5
Push specific snapshot to staging
gwendolyngoetz Sep 17, 2024
8916e63
Set test to v2.12
gwendolyngoetz Sep 17, 2024
a33933a
Updating prod to v2.12
gwendolyngoetz Sep 18, 2024
7eeb8b1
Set staging back to latest release
gwendolyngoetz Sep 23, 2024
d99833e
Set test to v2.13
gwendolyngoetz Sep 24, 2024
fb6c173
Updating test and prod to v2.15
gwendolyngoetz Oct 9, 2024
cd1ba16
Merge branch 'civiform:main' into main
gwendolyngoetz Oct 10, 2024
61a9962
Update test version to use snapshot with bug fix
gwendolyngoetz Oct 10, 2024
788772c
Update postgres version
gwendolyngoetz Oct 10, 2024
84259c3
Update prod to use snapshot with bug fix
gwendolyngoetz Oct 10, 2024
178540b
Update test_gis.yml
gwendolyngoetz Oct 17, 2024
0eefbd3
Update test_gis.yml
gwendolyngoetz Oct 17, 2024
94e131e
Update civiform_config.staging.sh
gwendolyngoetz Oct 17, 2024
62ffb4d
Remove old CSP feature flag
gwendolyngoetz Oct 22, 2024
efb85bc
Merge branch 'civiform:main' into main
gwendolyngoetz Oct 22, 2024
190d5fa
Update run-prober
gwendolyngoetz Oct 22, 2024
12f1b27
Update run-prober
gwendolyngoetz Oct 22, 2024
8a986fe
Update civiform_config.staging.sh
gwendolyngoetz Oct 22, 2024
e87dd10
Update dependency @types/node to v20.16.14
renovate[bot] Oct 22, 2024
15275b4
Update run-prober
gwendolyngoetz Oct 22, 2024
38d809a
Merge pull request #13 from seattle-civiform/renovate/node-20.x
gwendolyngoetz Oct 22, 2024
b01f082
Update dependency @playwright/test to v1.48.1
renovate[bot] Oct 22, 2024
3b8cda7
Update dependency typescript to v5.6.3
renovate[bot] Oct 22, 2024
ae566ec
Update civiform_config.staging.sh
gwendolyngoetz Oct 22, 2024
a524482
Merge pull request #14 from seattle-civiform/renovate/slackapi-slack-…
gwendolyngoetz Oct 23, 2024
0c2e21b
Merge pull request #12 from seattle-civiform/renovate/typescript-5.x
gwendolyngoetz Oct 23, 2024
6c6aecb
Merge pull request #11 from seattle-civiform/renovate/playwright-mono…
gwendolyngoetz Oct 23, 2024
6394520
Update test to v2.17.0
gwendolyngoetz Oct 28, 2024
f639eb6
Set staging to latest
gwendolyngoetz Oct 28, 2024
bb1cb2e
Add xlsx file types
gwendolyngoetz Oct 29, 2024
d75dcd5
Set prod to v2.17.0
gwendolyngoetz Oct 29, 2024
321c868
Updates to config versions for v2.18.0
gwendolyngoetz Oct 30, 2024
b9feffc
Update dependency @types/node to v22
renovate[bot] Oct 31, 2024
25582a4
Set test to SNAPSHOT-5daf1c1-1730319184 for testing
gwendolyngoetz Oct 31, 2024
fe12333
Merge pull request #17 from seattle-civiform/renovate/node-22.x
gwendolyngoetz Oct 31, 2024
57de39d
Update dependency @playwright/test to v1.48.2
renovate[bot] Oct 31, 2024
b5e954c
Merge pull request #16 from seattle-civiform/renovate/playwright-mono…
gwendolyngoetz Oct 31, 2024
0ee94e0
Delete CODEOWNERS
gwendolyngoetz Nov 4, 2024
9ed7db4
Updat test to v2.19.0
gwendolyngoetz Nov 7, 2024
f82777c
Update civiform_config.prod.sh
swatkat1 Nov 7, 2024
2f9212e
Update slackapi/slack-github-action action to v2
renovate[bot] Nov 15, 2024
105d85f
Updating to v2.20.0
gwendolyngoetz Nov 21, 2024
2702427
Merge branch 'civiform:main' into main
gwendolyngoetz Nov 21, 2024
b0986d2
Updating to v2.21.0
gwendolyngoetz Nov 21, 2024
7d82b13
Merge branch 'main' of github.com:seattle-civiform/civiform-deploy-tf
gwendolyngoetz Nov 21, 2024
c0a1f92
Setting staging to use custom image
gwendolyngoetz Nov 22, 2024
b08e6ea
Merge pull request #20 from seattle-civiform/renovate/slackapi-slack-…
gwendolyngoetz Nov 27, 2024
d880989
Update slack-notification-tester.yml
gwendolyngoetz Nov 27, 2024
5c68419
Update civiform_config.staging.sh
gwendolyngoetz Dec 4, 2024
e670248
Update slack
gwendolyngoetz Dec 5, 2024
8a293f4
update ubuntu
gwendolyngoetz Dec 5, 2024
dabda73
Update to ubuntu 24.04
gwendolyngoetz Dec 5, 2024
e92143a
Add terraform install
gwendolyngoetz Dec 5, 2024
a1a79d3
Set back to latest ubuntu
gwendolyngoetz Dec 5, 2024
4b6633e
Update civiform_config.test.sh
swatkat1 Jan 7, 2025
7a0ece4
Update civiform_config.prod.sh
swatkat1 Jan 7, 2025
f646c2c
Update civiform_config.staging.sh
swatkat1 Jan 28, 2025
bbfdfcc
Update civiform_config.test.sh
swatkat1 Jan 28, 2025
a56e5b8
Update civiform_config.test.sh
swatkat1 Jan 30, 2025
c028929
Update civiform_config.test.sh
swatkat1 Jan 30, 2025
750053a
Update civiform_config.test.sh
swatkat1 Jan 30, 2025
cdc4d21
Update civiform_config.prod.sh
swatkat1 Jan 30, 2025
1d0d0ef
Update civiform_config.prod.sh
swatkat1 Feb 3, 2025
6624d21
Update civiform_config.test.sh
swatkat1 Feb 3, 2025
36bdc33
Update civiform_config.test.sh
swatkat1 Feb 4, 2025
ff861f5
Update civiform_config.test.sh
swatkat1 Feb 4, 2025
82e98d5
Update civiform_config.prod.sh
swatkat1 Feb 4, 2025
8784d9c
Update civiform_config.prod.sh
swatkat1 Feb 4, 2025
14869f9
Update civiform_config.test.sh
swatkat1 Mar 12, 2025
96a3227
Pull in phone number from OIDC
gwendolyngoetz Mar 12, 2025
3b9d262
Merge pull request #24 from seattle-civiform/gwen-oidc-phone
swatkat1 Mar 12, 2025
5600134
Update civiform_config.test.sh
swatkat1 Mar 12, 2025
a882648
Update civiform_config.prod.sh
swatkat1 Mar 12, 2025
d8bbb2e
Update civiform_config.staging.sh
swatkat1 Mar 18, 2025
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
3 changes: 3 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["config:base"]
}
127 changes: 127 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Seattle Deploy
run-name: Seattle Deploy for ${{ github.event.inputs.environment || 'staging' }}

on:
workflow_dispatch:
inputs:
environment:
type: environment
default: staging
required: true

deploy_enabled:
type: boolean
description: 'Deploy when checked'
default: true
required: true

probers_enabled:
type: boolean
description: 'Runs probers when checked'
default: false
required: true

schedule:
- cron: '0 12 1/1 * *'

permissions:
id-token: write
contents: read

# Two probers running at once can break each other.
concurrency:
group: group-${{ github.event.inputs.environment || 'staging' }}

jobs:
deploy:
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment || 'staging' }}

env:
SKIP_CONFIRMATIONS: true
SKIP_USER_INPUT: true
SLACK_CHANNEL: 'C03UXPUEXU4'
# When run by the schedule github.event.inputs are not set. It's easier to normalize these here into environment variables
# than to have the extra logic all over and duplicated.
# If environment is null default to the staging site
ENVIRONMENT: ${{ github.event.inputs.environment || 'staging' }}
# Consider deployment to be enabled if manually checked or if run from a schedule
DEPLOY_ENABLED: ${{ (github.event.inputs == null || github.event.inputs.deploy_enabled == 'true') }}
# Consider probers to be enabled if manually checked or if run from a schedule, but only run them on the staging site
# beause we don't want to wipe test site data.
# PROBERS_ENABLED: ${{ (github.event.inputs == null || github.event.inputs.probers_enabled == 'true') && ((github.event.inputs.environment || 'staging') == 'staging') }}
PROBERS_ENABLED: ${{ (github.event.inputs.probers_enabled == 'true') && ((github.event.inputs.environment || 'staging') == 'staging') }}

steps:
- name: Notify Slack Start
uses: slackapi/slack-github-action@v2.0.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ env.CHANNEL_ID }}
text: ":space-needle: Starting Seattle Deploy\nEnv: ${{ env.ENVIRONMENT }}\nDeploy: ${{ env.DEPLOY_ENABLED }}\nProbers: ${{ env.PROBERS_ENABLED }}"
env:
CHANNEL_ID: C03UXPUEXU4

- name: Checkout
uses: actions/checkout@v4

- name: Install terraform cli
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Resolve Latest Snapshot Tag
run: source bin/resolve-latest-snapshot-tag

- name: Configure AWS Credentials
id: credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.AWS_ROLE_IAM }}
output-credentials: true

- name: Get caller identity
run: aws sts get-caller-identity

- name: Run deployment with latest on ${{ env.ENVIRONMENT }}
if: (env.DEPLOY_ENABLED == 'true')
env:
AWS_ACCESS_KEY_ID: ${{ steps.credentials.outputs.aws-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ steps.credentials.outputs.aws-secret-access-key }}
run: bin/deploy --config="civiform_config.${{ env.ENVIRONMENT }}.sh"

- name: Run Prober tests
if: (env.PROBERS_ENABLED == 'true')
env:
TEST_USER_LOGIN: ${{ secrets.TEST_USER_LOGIN }}
TEST_USER_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}
TEST_USER_DISPLAY_NAME: 'TEST, UATAPP'
TEST_CIVIC_ENTITY_SHORT_NAME: '${{ vars.CIVIC_ENTITY_SHORT_NAME }}'
BASE_URL: 'https://${{ vars.SUBDOMAIN }}.seattle.gov'
run: bin/run-prober

- name: Upload test videos and traces on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: tests videos and traces
retention-days: 3
path: |
tmp/html-output/
tmp/videos/

- name: Notify Slack Complete
if: always()
uses: slackapi/slack-github-action@v2.0.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ env.SLACK_CHANNEL }}
text: ":space-needle: ${{ env.STATUS_ICON }} Completed Seattle Deploy <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ job.status }}>\nVersion: ${{ env.LATEST_SNAPSHOT_TAG }}\nEnv: ${{ env.ENVIRONMENT }}\nDeploy: ${{ env.DEPLOY_ENABLED }}\nProbers: ${{ env.PROBERS_ENABLED }}"
env:
CHANNEL_ID: C03UXPUEXU4
STATUS_ICON: ${{fromJSON('[":no_entry:", ":white_check_mark:"]')[job.status == 'success']}}
23 changes: 23 additions & 0 deletions .github/workflows/slack-notification-tester.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Slack Notification Tester

on:
workflow_dispatch: {}

permissions: read-all

jobs:
run_prober:
runs-on: ubuntu-latest
steps:
- name: Notify Slack Complete
if: always()
uses: slackapi/slack-github-action@v2.0.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ env.CHANNEL_ID }}
text: ":space-needle: Test Message from Seattle Staging Deploy: \n${{ job.status }} ${{ env.ICON }} <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ job.status }} TEST>"
env:
CHANNEL_ID: C03UXPUEXU4
ICON: ${{fromJSON('[":no_entry:", ":white_check_mark:"]')[job.status == 'success']}}
45 changes: 45 additions & 0 deletions .github/workflows/test_api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test API
run-name: Test API

on:
workflow_dispatch:
inputs:
environment:
type: environment
default: test
required: true

permissions: {}

jobs:
test-api:
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment || 'staging' }}

env:
ENVIRONMENT: ${{ github.event.inputs.environment || 'staging' }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
run: cd qa && npm install

- name: Run
env:
BASE_URL: 'https://${{ vars.SUBDOMAIN }}.seattle.gov'
API_TOKEN: ${{ secrets.API_TOKEN }}
PROGRAM_SLUGS: ${{ secrets.PROGRAM_SLUGS }}
run: cd qa && npx playwright test

- name: On Failure
if: failure()
run: echo "FAILED"

# - name: Send message to ms teams
# if: failure()
# uses: dhollerbach/actions.send-message-to-ms-teams@1.0.10
# with:
# webhook: '${{ secrets.MICROSOFT_TEAMS_WEBHOOK_URI }}'
# message: 'Testing API failed. There *may* be issues with the API. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
43 changes: 43 additions & 0 deletions .github/workflows/test_gis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test GIS

on:
workflow_dispatch:
inputs:
force_send_teams_message:
type: boolean
description: 'Message Teams anyway'
default: false
required: false

schedule:
- cron: '0 * * * *'

permissions: {}

jobs:
test-gis:
runs-on: ubuntu-latest

env:
FORCE_SEND_TEAMS_MESSAGE: ${{ (github.event.inputs != null && github.event.inputs.force_send_teams_message == 'true') }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run gis testing script
run: bin/test_gis.sh

- name: Send message to ms teams
if: failure()
uses: dhollerbach/actions.send-message-to-ms-teams@1.0.10
with:
webhook: '${{ secrets.MICROSOFT_TEAMS_WEBHOOK_URI }}'
message: 'Testing GIS failed. There *may* be issues afoot. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'

- name: Force send test message to ms teams
if: (env.FORCE_SEND_TEAMS_MESSAGE == 'true')
uses: dhollerbach/actions.send-message-to-ms-teams@1.0.10
with:
webhook: '${{ secrets.MICROSOFT_TEAMS_WEBHOOK_URI }}'
message: 'Nothing is wrong. Just testing the teams connection.'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
civiform_config.sh
.DS_Store
.idea
*.log
*.tar
tmp/
nuke.yaml # this file is created by developers when working on the deployment system. see https://docs.civiform.us/contributor-guide/developer-guide/deploy-system/prerequisites#setup-aws-nuke
checkout/
node_modules/
1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

5 changes: 5 additions & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Setup

Environments are configured under the repository settings.

To add a new deployment target create a new environment and a new deploy config file named civiform_config.ENV_NAME.sh
15 changes: 15 additions & 0 deletions bin/remove-pgadmin-temp-secrets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

pushd $(git rev-parse --show-toplevel) > /dev/null

CONFIG="${1}"

if [[ ! -f "${CONFIG}" ]]; then
echo "Add config file name"
exit 1
fi

source ${CONFIG}

aws secretsmanager delete-secret --force-delete-without-recovery --secret-id "${APP_PREFIX}-cf-pgadmin-default-password"
aws secretsmanager delete-secret --force-delete-without-recovery --secret-id "${APP_PREFIX}-cf-pgadmin-default-username"
23 changes: 23 additions & 0 deletions bin/resolve-latest-snapshot-tag
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#! /usr/bin/env bash

set -e
set -o pipefail

docker pull docker.io/civiform/civiform:latest

snapshot_tag="$(docker inspect docker.io/civiform/civiform:latest \
| jq '.[0].Config.Env' \
| grep 'CIVIFORM_IMAGE_TAG' \
| grep -oP 'SNAPSHOT-\w+-\d+')"

if [[ -z "${snapshot_tag}" ]]; then
echo "Latest snapshot tag not found." 2>&1
exit 1
fi

export LATEST_SNAPSHOT_TAG="${snapshot_tag}"

if [[ -n "${GITHUB_ENV}" ]]; then
echo "LATEST_SNAPSHOT_TAG=${snapshot_tag}" >>"${GITHUB_ENV}"
fi

19 changes: 19 additions & 0 deletions bin/run-prober
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /usr/bin/env bash

# DOC: Run the browser test suite in Docker against the staging environment.

docker pull civiform/civiform-browser-test:latest

docker run \
-v "$(pwd)/tmp:/usr/src/civiform-browser-tests/tmp" \
-e BASE_URL="${BASE_URL}" \
-e TEST_USER_AUTH_STRATEGY="seattle-staging" \
-e TEST_USER_LOGIN="${TEST_USER_LOGIN}" \
-e TEST_USER_PASSWORD="${TEST_USER_PASSWORD}" \
-e TEST_USER_DISPLAY_NAME="TEST, UATAPP" \
-e TEST_CIVIC_ENTITY_SHORT_NAME="Seattle [STAGING]" \
-e DISABLE_BROWSER_ERROR_WATCHER=true \
-e DISABLE_SCREENSHOTS=false \
-e CI=true \
civiform/civiform-browser-test:latest \
-c "npm install && npm test -- --grep-invert @northstar $@"
54 changes: 54 additions & 0 deletions bin/test_gis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#! /usr/bin/env bash

# DOC: Test seattle gis servers

pushd "$(git rev-parse --show-toplevel)" > /dev/null

set -e
set +x

function test_url {
local url="${1}"
local jq_array_path="${2}"
local expected_array_size="${3}"
local RED='\033[0;31m'
local GREEN='\033[0;32m'
local NC='\033[0m'

response="$(curl \
--silent \
"${url}")"

if ! jq --exit-status . >/dev/null 2>&1 <<<"${response}"; then
printf "${RED}Failed to parse response${NC}\n"
echo "--------------------------------------------------------------------"
echo "${response}"
exit 1
else
printf "${GREEN}Valid JSON${NC}\n"
fi

actual_array_size="$(jq "${jq_array_path} | length" <<<"${response}")"

if [[ "${expected_array_size}" != "${actual_array_size:0:1}" ]]; then
printf "${RED}Did not get the expected result count. Expected |${expected_array_size}|. Actual |${actual_array_size}|${NC}\n"
echo "--------------------------------------------------------------------"
echo "${response}" | jq
exit 1
else
printf "${GREEN}General array counts match${NC}\n"
fi
}

echo "Test findAddressCandidates"
findAddressCandidatesUrl="https://gisdata.seattle.gov/cosgis/rest/services/locators/AddressPoints/GeocodeServer/findAddressCandidates?Address=700+5th+Ave&City=Seattle&Region=WA&Postal=98101&f=pjson"
test_url "${findAddressCandidatesUrl}" ".candidates" 3

echo "Test serviceArea"
serviceAreaUrl="https://gisdata.seattle.gov/server/rest/services/COS/Seattle_City_Limits/MapServer/1/query?geometryType=esriGeometryPoint&outFields=*&returnGeometry=false&f=json&inSR=2926&maxLocations=3&geometry={''x'':1271253,''y'':224277,''spatialReference'':2926}"
test_url "${serviceAreaUrl}" ".fields" 8

echo "Test ssl certficate"
echo | openssl s_client -servername gisdata.seattle.gov -connect gisdata.seattle.gov:443

echo ""
Loading