File tree 3 files changed +49
-0
lines changed
3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ # See https://cloud.google.com/cloud-build/docs/build-config
2
+ options :
3
+ substitution_option : ALLOW_LOOSE
4
+ machineType : E2_HIGHCPU_32
5
+ steps :
6
+ - name : gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20250116-2a05ea7e3d
7
+ entrypoint : bash
8
+ env :
9
+ - DRIVER_IMAGE_REGISTRY=us-central1-docker.pkg.dev/k8s-staging-images/dra-example-driver
10
+ - DRIVER_IMAGE_TAG=$COMMIT_SHA
11
+ args :
12
+ - -ec
13
+ - |
14
+ demo/scripts/build-driver-image.sh
15
+ demo/scripts/push-driver-image.sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Copyright 2025 The Kubernetes Authors.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # A reference to the current directory where this script is located
18
+ CURRENT_DIR=" $( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd) "
19
+
20
+ set -ex
21
+ set -o pipefail
22
+
23
+ source " ${CURRENT_DIR} /common.sh"
24
+
25
+ # Set build variables
26
+ export REGISTRY=" ${DRIVER_IMAGE_REGISTRY} "
27
+ export IMAGE=" ${DRIVER_IMAGE_NAME} "
28
+ export VERSION=" ${DRIVER_IMAGE_TAG} "
29
+ export CONTAINER_TOOL=" ${CONTAINER_TOOL} "
30
+
31
+ make -f deployments/container/Makefile push
Original file line number Diff line number Diff line change @@ -38,3 +38,6 @@ $(DISTRIBUTIONS):
38
38
--build-arg VERSION=" $( VERSION) " \
39
39
-f $(DOCKERFILE ) \
40
40
$(CURDIR )
41
+
42
+ push :
43
+ $(CONTAINER_TOOL ) push $(IMAGE )
You can’t perform that action at this time.
0 commit comments