Last active
November 13, 2018 15:48
-
-
Save manekinekko/b722cee75c6021979ddf4cbd193c71eb to your computer and use it in GitHub Desktop.
Google Cloud Build config file for xlayers.app (CI only)
This file contains hidden or 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
steps: | |
- name: 'gcr.io/cloud-builders/npm' | |
id: 'Install dependencies' | |
args: ['install'] | |
- name: 'gcr.io/cloud-builders/npm' | |
id: 'Lint' | |
args: ['run', 'lint'] | |
- name: 'gcr.io/cloud-builders/npm' | |
id: 'Test' | |
args: ['run', 'test:ci'] | |
- name: 'gcr.io/cloud-builders/npm' | |
id: 'Build' | |
args: ['run', 'build', '--', '--output-path', 'dist/html'] | |
env: | |
- 'BUILD_ID=$BUILD_ID' | |
# Build snapshot images and push them to Cloud Registry | |
- name: 'gcr.io/cloud-builders/docker' | |
id: 'Build deployable image (commit tag)' | |
args: ['build', '-t', 'gcr.io/$PROJECT_ID/xlayers:$SHORT_SHA', '.'] | |
- name: 'gcr.io/cloud-builders/docker' | |
id: 'Push deployable image (commit tag)' | |
args: ['push', 'gcr.io/$PROJECT_ID/xlayers:$SHORT_SHA'] | |
- name: 'gcr.io/cloud-builders/docker' | |
id: 'Build deployable image (latest tag)' | |
args: ['build', '-t', 'gcr.io/$PROJECT_ID/xlayers:latest', '.'] | |
- name: 'gcr.io/cloud-builders/docker' | |
id: 'Push deployable image (latest tag)' | |
args: ['push', 'gcr.io/$PROJECT_ID/xlayers:latest'] | |
images: | |
- 'gcr.io/$PROJECT_ID/xlayers:$SHORT_SHA' | |
- 'gcr.io/$PROJECT_ID/xlayers:latest' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment