Skip to content

Commit 5b80d96

Browse files
committed
Makefile clarification for staging image, error if not set
1 parent d69d75e commit 5b80d96

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# Args:
16+
# GCE_PD_CSI_STAGING_IMAGE: Staging image repository
17+
1518
STAGINGIMAGE=${GCE_PD_CSI_STAGING_IMAGE}
1619
STAGINGVERSION=latest
1720

@@ -25,6 +28,9 @@ gce-pd-driver:
2528
go build -ldflags "-X main.vendorVersion=${STAGINGVERSION}" -o bin/gce-pd-csi-driver ./cmd/
2629

2730
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
2834
docker build --build-arg TAG=$(STAGINGVERSION) -t $(STAGINGIMAGE):$(STAGINGVERSION) .
2935

3036
push-container: build-container

0 commit comments

Comments
 (0)