-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial * update sso cron jobs * run django and sso server * tidy up * set sso service env vars * format on save and organize imports * Merge branch 'main' into dispatch * use subpaths for portal
- Loading branch information
Showing
4 changed files
with
147 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Dispatch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'dispatch.yaml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛫 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🗝 Authenticate with GCloud | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{ secrets.GCP_CREDENTIALS }} | ||
|
||
- name: 🤖 Set up GCloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
|
||
- name: 🚀 Deploy Cron Jobs on GCloud | ||
run: gcloud app deploy dispatch.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# https://cloud.google.com/appengine/docs/legacy/standard/python/reference/dispatch-yaml | ||
dispatch: | ||
# SSO | ||
|
||
- url: "codeforlife.education/development-sso/*" | ||
service: development-sso | ||
|
||
- url: "codeforlife.education/staging-sso/*" | ||
service: staging-sso | ||
|
||
- url: "codeforlife.education/sso/*" | ||
service: production-sso | ||
|
||
# Portal | ||
|
||
- url: "codeforlife.education/development-portal/*" | ||
service: development-portal | ||
|
||
- url: "codeforlife.education/staging-portal/*" | ||
service: staging-portal | ||
|
||
- url: "codeforlife.education/portal/*" | ||
service: production-portal | ||
|
||
# TODO: route to new portal service. | ||
- url: "codeforlife.education/*" | ||
service: default | ||
|
||
# TODO: route to new portal service. | ||
- url: "www.codeforlife.education/*" | ||
service: default | ||
|
||
# Rapid Router | ||
|
||
# - url: "development-rapid-router.codeforlife.education/*" | ||
# service: development-rapid-router | ||
|
||
# - url: "staging-rapid-router.codeforlife.education/*" | ||
# service: staging-rapid-router | ||
|
||
# - url: "rapid-router.codeforlife.education/*" | ||
# service: production-rapid-router | ||
|
||
# Kurono | ||
|
||
# - url: "development-kurono.codeforlife.education/*" | ||
# service: development-kurono | ||
|
||
# - url: "staging-kurono.codeforlife.education/*" | ||
# service: staging-kurono | ||
|
||
# - url: "kurono.codeforlife.education/*" | ||
# service: production-kurono |