2020-08-07 16:15:32 +00:00
|
|
|
steps:
|
|
|
|
- name: gcr.io/cloud-builders/docker
|
|
|
|
args:
|
|
|
|
- 'build'
|
2020-08-24 08:20:23 +00:00
|
|
|
- '--build-arg=VERSION=$_GIT_TAG'
|
|
|
|
- '--build-arg=HOSTMOUNT_PREFIX=/host-'
|
|
|
|
- '--tag=gcr.io/$PROJECT_ID/node-feature-discovery:$_GIT_TAG'
|
|
|
|
- '--tag=gcr.io/$PROJECT_ID/node-feature-discovery:$_PULL_BASE_REF'
|
2020-08-24 09:46:56 +00:00
|
|
|
- '--tag=gcr.io/$PROJECT_ID/node-feature-discovery:$_PULL_BASE_REF-g$COMMIT_SHA'
|
2020-08-07 16:15:32 +00:00
|
|
|
- '.'
|
|
|
|
substitutions:
|
|
|
|
_GIT_TAG: '0.0.0'
|
|
|
|
_PULL_BASE_REF: 'master'
|
|
|
|
options:
|
|
|
|
substitution_option: ALLOW_LOOSE
|
|
|
|
# Pust images
|
|
|
|
images:
|
2020-08-21 11:48:46 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/node-feature-discovery:$_GIT_TAG'
|
|
|
|
- 'gcr.io/$PROJECT_ID/node-feature-discovery:$_PULL_BASE_REF'
|
2020-08-24 09:46:56 +00:00
|
|
|
- 'gcr.io/$PROJECT_ID/node-feature-discovery:$_PULL_BASE_REF-g$COMMIT_SHA'
|