forked from google/cyanobyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild-deploy.yaml
32 lines (27 loc) · 993 Bytes
/
cloudbuild-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
substitutions:
_HUGO: 0.57.2
steps:
- name: gcr.io/cloud-builders/git
entrypoint: bash
id: Clone Docsy theme
args: ['-c', 'git clone --recurse-submodules --depth 1 https://github.com/google/docsy.git docs/themes/docsy']
- name: node:10.15.1
entrypoint: npm
args: ['install', 'autoprefixer', 'postcss-cli']
id: Install PostCSS for final CSS assets
- name: gcr.io/cloud-builders/wget
entrypoint: bash
args: ['-c', 'wget -O- https://github.com/gohugoio/hugo/releases/download/v${_HUGO}/hugo_extended_${_HUGO}_Linux-64bit.tar.gz | tar zx']
id: Install Hugo manually
- name: gcr.io/cloud-builders/git
entrypoint: bash
id: Move up content directory
args: ['-c', 'mv docs/* .']
- name: node:10.15.1
entrypoint: bash
args: ['-c', './hugo']
id: Run Hugo manually
# Setup https://github.com/GoogleCloudPlatform/cloud-builders-community/tree/master/firebase
- name: gcr.io/$PROJECT_ID/firebase
args: ['deploy', '--project', '$PROJECT_ID']
id: Deploy to Firebase