Skip to content

Commit

Permalink
Add a Cloud Build config to deploy website to Firebase. (dart-lang#5447)
Browse files Browse the repository at this point in the history
As the title says. This is the Cloud Build configuration that we'll use
to build dart.dev and publish to Firebase hosting.

Note: This current config currently publishes to a staging Flutter
project to confirm everything works on main.

Once this PR lands and we've confirmed deploy works as expected, 
- [ ] I'll open another PR to switch to prod project `dart-dev`
- [ ] Decommission the [deploy.yaml GitHub
action](https://github.com/dart-lang/site-www/blob/main/.github/workflows/deploy.yml).
- [ ] Update the trigger branch to `main`

cc @drewroengoogle @parlough
  • Loading branch information
khanhnwin authored and Tony Sansone committed Jan 26, 2024
1 parent 1d115e5 commit c2ce8d7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cloud_build/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
steps:
- name: gcr.io/cloud-builders/git
args: ['submodule', 'update', '--init', '--recursive']
- name: gcr.io/cloud-builders/docker
entrypoint: '/bin/bash'
args:
- '-c'
- |-
set -e
echo "Building the website using a makefile..."
make build
- name: gcr.io/flutter-dev-230821/firebase-ghcli
entrypoint: '/bin/bash'
args:
- '-c'
- |-
firebase deploy --project=flutter-website-staging-349021 --only=hosting
options:
logging: CLOUD_LOGGING_ONLY

0 comments on commit c2ce8d7

Please sign in to comment.