1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 08:17:04 +00:00

Merge pull request #332 from marquiz/devel/gcb

Add cloudbuild.yaml
This commit is contained in:
Kubernetes Prow Robot 2020-08-21 02:03:39 -07:00 committed by GitHub
commit c24112ba61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
cloudbuild.yaml Normal file
View file

@ -0,0 +1,18 @@
steps:
- name: gcr.io/cloud-builders/docker
args:
- 'build'
- '--build-arg NFD_VERSION=$_GIT_TAG'
- '--build-arg HOSTMOUNT_PREFIX=/host-'
- '-t k8s.gcr.io/$PROJECT_ID/node-feature-discovery:$_GIT_TAG'
- '-t k8s.gcr.io/$PROJECT_ID/node-feature-discovery:$_PULL_BASE_REF'
- '.'
substitutions:
_GIT_TAG: '0.0.0'
_PULL_BASE_REF: 'master'
options:
substitution_option: ALLOW_LOOSE
# Pust images
images:
- 'k8s.gcr.io/$PROJECT_ID/node-feature-discovery:$_GIT_TAG'
- 'k8s.gcr.io/$PROJECT_ID/snode-feature-discovery:master'