mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
0903c02438
Create a container image tag that is unique for each commit and can be easily referenced from the e2e testing side.
20 lines
712 B
YAML
20 lines
712 B
YAML
steps:
|
|
- name: gcr.io/cloud-builders/docker
|
|
args:
|
|
- 'build'
|
|
- '--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'
|
|
- '--tag=gcr.io/$PROJECT_ID/node-feature-discovery:$_PULL_BASE_REF-g$COMMIT_SHA'
|
|
- '.'
|
|
substitutions:
|
|
_GIT_TAG: '0.0.0'
|
|
_PULL_BASE_REF: 'master'
|
|
options:
|
|
substitution_option: ALLOW_LOOSE
|
|
# Pust images
|
|
images:
|
|
- 'gcr.io/$PROJECT_ID/node-feature-discovery:$_GIT_TAG'
|
|
- 'gcr.io/$PROJECT_ID/node-feature-discovery:$_PULL_BASE_REF'
|
|
- 'gcr.io/$PROJECT_ID/node-feature-discovery:$_PULL_BASE_REF-g$COMMIT_SHA'
|