Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

restart application #72631

restart application

restart application #72631

Workflow file for this run

---
name: restart application
on:
schedule:
- cron: '14/15 * * * *'
workflow_dispatch:
jobs:
restart-staging:
name: restart (staging)
environment: staging
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: restart
uses: cloud-gov/cg-cli-tools@main
with:
command: cf restart dashboard-stage --strategy rolling
cf_org: gsa-datagov
cf_space: staging
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: smoke test
run: curl --fail --silent https://dashboard-stage-datagov.app.cloud.gov/healthcheck?$(date +%s)
restart-prod:
name: restart (prod)
environment: production
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: restart
uses: cloud-gov/cg-cli-tools@main
with:
command: cf restart dashboard --strategy rolling
cf_org: gsa-datagov
cf_space: prod
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: smoke test
run: curl --fail --silent https://dashboard-prod-datagov.app.cloud.gov/healthcheck?$(date +%s)