Skip to content

Commit

Permalink
Merge pull request #987 from GSA/post-release
Browse files Browse the repository at this point in the history
Post release
  • Loading branch information
nickumia-reisys committed Jul 17, 2023
2 parents cc5c1cd + 63fe9c3 commit 15bc9a4
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ckan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
type: choice
options:
- development
- staging
- prod
app:
description: 'App to run on:'
required: true
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ckan_auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
"schedule": ["${{env.SCHEDULE_TRACKING}}", "${{env.SCHEDULE_SITEMAP}}",
"${{env.SCHEDULE_HARVESTING}}", "${{env.SCHEDULE_STUCK_JOBS}}",
"${{env.SCHEDULE_DBSOLR_SYNC}}", "${{ env.SCHEDULE_GEN_REPORT}}"],
"environ": ["development"],
"environ": ["development", "staging", "prod"],
"include": [ {"app": "catalog-admin"},
{"error_seconds": 22000},
{"info_issue": false},
Expand All @@ -78,9 +78,12 @@ jobs:
{"schedule": "${{env.SCHEDULE_STUCK_JOBS}}", "command": "ckan geodatagov check-stuck-jobs"},
{"schedule": "${{env.SCHEDULE_GEN_REPORT}}", "command": "ckan report generate"},
{"schedule": "${{env.SCHEDULE_GEN_REPORT}}", "issue_template": ".github/report-generation-failure.md"},
{"environ": "development", "ram": "1G"}
{"environ": "development", "ram": "1G"},
{"environ": "staging", "ram": "2500M"},
{"environ": "prod", "ram": "2500M"}
],
"exclude": [ {"schedule": "${{env.SCHEDULE_SITEMAP}}", "environ": "development"},
{"schedule": "${{env.SCHEDULE_SITEMAP}}", "environ": "staging"},
{"schedule": "${{env.SCHEDULE_DBSOLR_SYNC}}", "environ": "development"},
{"schedule": "${{env.SCHEDULE_STUCK_JOBS}}", "environ": "development"}
],
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,36 @@ jobs:
push: true
tags: ${{ matrix.tag }}

create-cloudgov-services-staging:
name: create services (staging)
uses: gsa/data.gov/.github/workflows/create-services-template.yml@main
with:
environ: staging
secrets: inherit

create-cloudgov-services-prod:
name: create services (prod)
uses: gsa/data.gov/.github/workflows/create-services-template.yml@main
with:
environ: prod
secrets: inherit

deploy-staging:
name: deploy (staging)
needs:
- create-cloudgov-services-staging
uses: gsa/data.gov/.github/workflows/deploy-template.yml@main
with:
environ: staging
app_url: https://catalog-stage-datagov.app.cloud.gov
app_names: "{\"include\":[{\"app\":\"catalog-web\",\"smoketest\":true},{\"app\":\"catalog-admin\"},{\"app\":\"catalog-fetch\"},{\"app\":\"catalog-gather\"},{\"app\":\"catalog-proxy\"}]}"
secrets: inherit

deploy-prod:
name: deploy (prod)
needs:
- create-cloudgov-services-prod
- deploy-staging
uses: gsa/data.gov/.github/workflows/deploy-template.yml@main
with:
environ: prod
Expand All @@ -61,6 +80,7 @@ jobs:
network-policies:
name: Add network-policies
needs:
- deploy-staging
- deploy-prod
runs-on: ubuntu-latest
environment: ${{ matrix.environ }}
Expand All @@ -71,7 +91,7 @@ jobs:
"cf add-network-policy catalog-proxy catalog-web --protocol tcp --port 61443",
"cf add-network-policy catalog-proxy catalog-admin --protocol tcp --port 61443"
]
environ: ["prod"]
environ: ["staging", "prod"]
steps:
- name: proxy to web
uses: cloud-gov/cg-cli-tools@main
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/restart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ on:
- cron: '11/30 * * * *'

jobs:
# restart-staging:
# name: restart (staging)
# uses: gsa/data.gov/.github/workflows/app-restart-template.yml@main
# with:
# environ: staging
# app_names: "{\"include\":[{\"app\":\"catalog-proxy\"},{\"app\":\"catalog-gather\"},{\"app\":\"catalog-fetch\"},{\"app\":\"catalog-web\"},{\"app\":\"catalog-admin\"},]}"
# secrets: inherit
restart-staging:
name: restart (staging)
uses: gsa/data.gov/.github/workflows/app-restart-template.yml@main
with:
environ: staging
app_names: "{\"include\":[{\"app\":\"catalog-proxy\"},{\"app\":\"catalog-gather\"},{\"app\":\"catalog-fetch\"},{\"app\":\"catalog-web\"},{\"app\":\"catalog-admin\"},]}"
secrets: inherit

restart-development:
name: restart (development)
restart-prod:
name: restart (prod)
uses: gsa/data.gov/.github/workflows/app-restart-template.yml@main
with:
environ: development
environ: prod
app_names: "{\"include\":[{\"app\":\"catalog-proxy\"},{\"app\":\"catalog-gather\"},{\"app\":\"catalog-fetch\"},{\"app\":\"catalog-web\"},{\"app\":\"catalog-admin\"},]}"
secrets: inherit
4 changes: 2 additions & 2 deletions vars.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ ckanext__saml2auth__idp_metadata__local_path: ckan/setup/login.production.idp.xm

web-instances: 5
admin-instances: 1
gather-instances: 0
fetch-instances: 0
gather-instances: 1
fetch-instances: 4
memory_quota: 850M
gather_memory_quota: 3G

Expand Down

0 comments on commit 15bc9a4

Please sign in to comment.