Skip to content

Commit

Permalink
Merge branch 'main' into ckan-210
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Jul 17, 2023
2 parents b8828ac + 6ea534e commit 22b0fe9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 30 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ckan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
type: choice
options:
- development
- prod
app:
description: 'App to run on:'
required: true
Expand Down
5 changes: 2 additions & 3 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", "prod"],
"environ": ["development"],
"include": [ {"app": "catalog-admin"},
{"error_seconds": 22000},
{"info_issue": false},
Expand All @@ -78,8 +78,7 @@ 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": "prod", "ram": "2500M"}
{"environ": "development", "ram": "1G"}
],
"exclude": [ {"schedule": "${{env.SCHEDULE_SITEMAP}}", "environ": "development"},
{"schedule": "${{env.SCHEDULE_DBSOLR_SYNC}}", "environ": "development"},
Expand Down
22 changes: 1 addition & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,36 +40,17 @@ 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 @@ -80,7 +61,6 @@ jobs:
network-policies:
name: Add network-policies
needs:
- deploy-staging
- deploy-prod
runs-on: ubuntu-latest
environment: ${{ matrix.environ }}
Expand All @@ -91,7 +71,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: ["staging", "prod"]
environ: ["prod"]
steps:
- name: proxy to web
uses: cloud-gov/cg-cli-tools@main
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/restart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
# app_names: "{\"include\":[{\"app\":\"catalog-proxy\"},{\"app\":\"catalog-gather\"},{\"app\":\"catalog-fetch\"},{\"app\":\"catalog-web\"},{\"app\":\"catalog-admin\"},]}"
# secrets: inherit

restart-prod:
name: restart (prod)
restart-development:
name: restart (development)
uses: gsa/data.gov/.github/workflows/app-restart-template.yml@main
with:
environ: prod
environ: development
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: 1
fetch-instances: 4
gather-instances: 0
fetch-instances: 0
memory_quota: 850M
gather_memory_quota: 3G

Expand Down

0 comments on commit 22b0fe9

Please sign in to comment.