Skip to content

Commit

Permalink
Merge pull request #484 from GSA/re-migration-staging
Browse files Browse the repository at this point in the history
Turn off restarts/harvesting (staging)
  • Loading branch information
nickumia-reisys authored Jul 1, 2022
2 parents e3b1055 + 40617d3 commit 591cdda
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 58 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/restart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,41 @@ on:
- cron: '11/30 * * * *'

jobs:
restart-staging:
name: restart (staging)
environment: staging
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: restart
uses: cloud-gov/cg-cli-tools@main
with:
command: cf restart catalog --strategy rolling
cf_org: gsa-datagov
cf_space: staging
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
# - name: restart gather
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: cf restart catalog-gather
# cf_org: gsa-datagov
# cf_space: staging
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: restart fetch
uses: cloud-gov/cg-cli-tools@main
with:
command: cf restart catalog-fetch
cf_org: gsa-datagov
cf_space: staging
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: smoke test
run: |
sleep 10
curl --fail --silent https://catalog-stage-datagov.app.cloud.gov/api/action/status_show?$(date +%s)
# restart-staging:
# name: restart (staging)
# environment: staging
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
# - name: restart
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: cf restart catalog --strategy rolling
# cf_org: gsa-datagov
# cf_space: staging
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
# # - name: restart gather
# # uses: cloud-gov/cg-cli-tools@main
# # with:
# # command: cf restart catalog-gather
# # cf_org: gsa-datagov
# # cf_space: staging
# # cf_username: ${{secrets.CF_SERVICE_USER}}
# # cf_password: ${{secrets.CF_SERVICE_AUTH}}
# - name: restart fetch
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: cf restart catalog-fetch
# cf_org: gsa-datagov
# cf_space: staging
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
# - name: smoke test
# run: |
# sleep 10
# curl --fail --silent https://catalog-stage-datagov.app.cloud.gov/api/action/status_show?$(date +%s)

restart-prod:
name: restart (prod)
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/run-harvest-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ on:

jobs:
# # Note: run this action if the harvesters need to be commented out
pause:
name: Stop Harvesting
runs-on: ubuntu-latest
steps:
- name: Pausing Harvesters most likely for re-indexing
run: echo "hi"
harvest-run-staging:
name: harvest-run (staging)
environment: staging
runs-on: ubuntu-latest
steps:
- name: harvest-run
# pinned to cf7 until --wait is available for run-task on cf8...
uses: cloud-gov/cg-cli-tools@main
with:
command: |
cf run-task catalog --command 'ckan harvester run' --name 'harvester-check-completed (CI)' -k 2G
cf_org: gsa-datagov
cf_space: staging
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
# pause:
# name: Stop Harvesting
# runs-on: ubuntu-latest
# steps:
# - name: Pausing Harvesters most likely for re-indexing
# run: echo "hi"
# harvest-run-staging:
# name: harvest-run (staging)
# environment: staging
# runs-on: ubuntu-latest
# steps:
# - name: harvest-run
# # pinned to cf7 until --wait is available for run-task on cf8...
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: |
# cf run-task catalog --command 'ckan harvester run' --name 'harvester-check-completed (CI)' -k 2G
# cf_org: gsa-datagov
# cf_space: staging
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
harvest-run-prod:
name: harvest-run (prod)
environment: production
Expand Down
4 changes: 2 additions & 2 deletions vars.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ckanext__saml2auth__entity_id: urn:gov:gsa:SAML:2.0.profiles:sp:sso:gsa:datagov-
ckanext__saml2auth__idp_metadata__local_path: ckan/setup/login.sandbox.idp.xml

web-instances: 2
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 591cdda

Please sign in to comment.