From 9e6bef4b71fced8c838344a4cb8956ae8bd784ed Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 7 Aug 2020 19:15:32 +0300 Subject: [PATCH] Add cloudbuild.yaml Basic google cloud build configuration. --- cloudbuild.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cloudbuild.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 000000000..39c3d40cd --- /dev/null +++ b/cloudbuild.yaml @@ -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'