We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d69d75e commit 5b80d96Copy full SHA for 5b80d96
Makefile
@@ -12,6 +12,9 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+# Args:
16
+# GCE_PD_CSI_STAGING_IMAGE: Staging image repository
17
+
18
STAGINGIMAGE=${GCE_PD_CSI_STAGING_IMAGE}
19
STAGINGVERSION=latest
20
@@ -25,6 +28,9 @@ gce-pd-driver:
25
28
go build -ldflags "-X main.vendorVersion=${STAGINGVERSION}" -o bin/gce-pd-csi-driver ./cmd/
26
29
27
30
build-container:
31
+ ifndef GCE_PD_CSI_STAGING_IMAGE
32
+ $(error "Must set environment variable GCE_PD_CSI_STAGING_IMAGE to staging image repository")
33
+ endif
34
docker build --build-arg TAG=$(STAGINGVERSION) -t $(STAGINGIMAGE):$(STAGINGVERSION) .
35
36
push-container: build-container
0 commit comments