-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename old deploy files and add public dev deploy workflow (#528)
* rename old deploy files and add public dev deploy workflow * Still need to fill the bucket but important to set project number --------- Co-authored-by: Peter York <peter.york@dft.gov.uk>
- Loading branch information
Showing
4 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/deploy_appengine_dev.yml → ...orkflows/deploy_private_appengine_dev.yml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Deploy to app engine (dev env) | ||
name: Deploy to app engine (internal dev env) | ||
|
||
on: | ||
push: | ||
|
2 changes: 1 addition & 1 deletion
2
.github/workflows/deploy_appengine_test.yml → ...rkflows/deploy_private_appengine_test.yml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Deploy to app engine (test env) | ||
name: Deploy to app engine (internal test env) | ||
|
||
on: | ||
push: | ||
|
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,47 @@ | ||
name: Deploy to app engine (public dev env) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
PROJECT_ID: dft-rlg-schemes-gis-dev | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: 'npm' | ||
|
||
- name: Install wasm-pack | ||
uses: jetli/wasm-pack-action@v0.4.0 | ||
|
||
- name: Build | ||
run: | | ||
npm ci | ||
npm run setup-govuk | ||
VITE_RESOURCE_BASE="https://${PROJECT_ID}.ew.r.appspot.com/data" npm run build | ||
cd backend | ||
rm -rf dist | ||
cp -R ../dist . | ||
- name: Authenticate to GCP | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: '${{ secrets.GCP_DEV_CREDENTIALS }}' | ||
|
||
- name: Deploy | ||
uses: google-github-actions/deploy-appengine@v1 | ||
with: | ||
project_id: ${{ vars.PROJECT_ID }} | ||
deliverables: backend/app_dev_public.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
runtime: nodejs18 | ||
env_variables: | ||
GCS_BUCKET: "dft-rlg-atip-dev" | ||
PROJECT_NUMBER: "237643263862" |