-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: deploy web app to staging environment (#1560)
- Loading branch information
Showing
9 changed files
with
137 additions
and
9 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,51 @@ | ||
name: Web client staging CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
web_cd: | ||
name: Deploy web client | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
ENV_NAME : stg | ||
CLOUDSDK_CORE_PROJECT : web-based-gtfs-validator | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
# We need to download all tags so that the axion-release-plugin | ||
# can resolve the most recent version tag. | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
# We need a recent version of Java with jpackage included. | ||
java-version: '17' | ||
# We use the zulu distribution, which is an OpenJDK distro. | ||
distribution: 'zulu' | ||
|
||
# for npm | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{ secrets.GCP_WEB_VALIDATOR_SA_KEY }} | ||
|
||
- uses: google-github-actions/setup-gcloud@v1 | ||
with: | ||
version: '>= 390.0.0' | ||
|
||
- name: run gradle tasks | ||
shell: bash | ||
run: | | ||
ENV_FILE=web/pipeline/${ENV_NAME}.env source web/pipeline/env-file.sh | ||
./gradlew ':web:client:webDeploy' |
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,51 @@ | ||
name: Web service staging CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
web_cd: | ||
name: Deploy web service | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
ENV_NAME : stg | ||
CLOUDSDK_CORE_PROJECT : web-based-gtfs-validator | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
# We need to download all tags so that the axion-release-plugin | ||
# can resolve the most recent version tag. | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
# We need a recent version of Java with jpackage included. | ||
java-version: '17' | ||
# We use the zulu distribution, which is an OpenJDK distro. | ||
distribution: 'zulu' | ||
|
||
# for npm | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{ secrets.GCP_WEB_VALIDATOR_SA_KEY }} | ||
|
||
- uses: google-github-actions/setup-gcloud@v1 | ||
with: | ||
version: '>= 390.0.0' | ||
|
||
- name: run gradle tasks | ||
shell: bash | ||
run: | | ||
ENV_FILE=web/pipeline/${ENV_NAME}.env source web/pipeline/env-file.sh | ||
./gradlew ':web:service:webDeploy' |
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
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,7 @@ | ||
CLOUDSDK_CORE_PROJECT=web-based-gtfs-validator | ||
WEB_BUILD_ENV=stg | ||
WEB_DEPLOY_CLIENT_BUCKET=stg-gtfs-validator-web | ||
WEB_DEPLOY_SVC_IMAGE=gcr.io/web-based-gtfs-validator/gtfs-validator-web | ||
WEB_DEPLOY_SVC_CLOUDRUN=stg-gtfs-validator-web | ||
PUBLIC_CLIENT_API_ROOT=https://stg-gtfs-validator-web-mbzoxaljzq-ue.a.run.app | ||
PUBLIC_CLIENT_REPORTS_ROOT=https://staging-gtfs-validator-results.mobilitydata.org |
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