Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #306 from mozilla/gcp
Browse files Browse the repository at this point in the history
Migrate to GCP
  • Loading branch information
LeoMcA authored Oct 25, 2023
2 parents 26cfb0c + 75b0941 commit 9e6a5e2
Show file tree
Hide file tree
Showing 40 changed files with 7,241 additions and 7,836 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy static content to GCP Prod

on:
# Runs on pushes targeting these branches
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "gcp-prod"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: prod
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
cache: npm

- name: Install all npm packages
run: npm ci

- name: Build all
run: npm run compile

- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v1"
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}"

- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v1

- name: Sync content
run: |-
gsutil -m -h "Cache-Control:public, max-age=86400" rsync -r dist/ gs://mdn-observatory-prod/
49 changes: 49 additions & 0 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy static content to GCP Stage

on:
# Runs on pushes targeting these branches
push:
branches: ["master", "stage"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "gcp-stage"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: stage
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
cache: npm

- name: Install all npm packages
run: npm ci

- name: Build all
run: npm run compile

- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v1"
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}"

- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v1

- name: Sync content
run: |-
gsutil -m -h "Cache-Control:public, max-age=86400" rsync -r dist/ gs://mdn-observatory-stage/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
conf/nginx.pid
build
node_modules
dist
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
8 changes: 0 additions & 8 deletions dist/10acdf1955be9d46fce6.index.css

This file was deleted.

89 changes: 0 additions & 89 deletions dist/10acdf1955be9d46fce6.index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/CNAME

This file was deleted.

1,285 changes: 0 additions & 1,285 deletions dist/analyze/index.html

This file was deleted.

39 changes: 0 additions & 39 deletions dist/contribute.json

This file was deleted.

210 changes: 0 additions & 210 deletions dist/faq/index.html

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file removed dist/fonts/raleway-v12-latin-ext_latin-700.woff
Binary file not shown.
Binary file removed dist/fonts/raleway-v12-latin-ext_latin-700.woff2
Binary file not shown.
Binary file removed dist/fonts/raleway-v12-latin-ext_latin-regular.woff
Binary file not shown.
Binary file removed dist/fonts/raleway-v12-latin-ext_latin-regular.woff2
Binary file not shown.
Binary file removed dist/fonts/zilla-slab-v4-latin_latin-ext-700.woff
Binary file not shown.
Binary file removed dist/fonts/zilla-slab-v4-latin_latin-ext-700.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed dist/images/favicons/apple-touch-icon-180x180.png
Binary file not shown.
Binary file removed dist/images/favicons/favicon-196x196.png
Binary file not shown.
Binary file removed dist/images/favicons/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion dist/images/immuniweb-logo.svg

This file was deleted.

Binary file removed dist/images/observatory-wordmark.afdesign
Binary file not shown.
74 changes: 0 additions & 74 deletions dist/images/observatory-wordmark.svg

This file was deleted.

Loading

0 comments on commit 9e6a5e2

Please sign in to comment.