File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ DOCKERFILE = Dockerfile
1111BUILD_IN_CONTAINER = 1
1212PUSH_TO_GCR =
1313
14- ifeq ($(PUSH_TO_GCR ) ,1)
15- GCLOUD = gcloud
16- endif
17-
1814nginx-ingress :
1915ifeq ($(BUILD_IN_CONTAINER ) ,1)
2016 $(DOCKER_RUN) -e CGO_ENABLED=0 $(GOLANG_CONTAINER) go build -a -installsuffix cgo -ldflags "-w -X main.version=${VERSION}" -o nginx-ingress *.go
@@ -33,7 +29,11 @@ container: test nginx-ingress
3329 docker build -f $(DOCKERFILE ) -t $(PREFIX ) :$(TAG ) .
3430
3531push : container
36- $(GCLOUD ) docker push $(PREFIX ) :$(TAG )
32+ ifeq ($(PUSH_TO_GCR ) ,1)
33+ gcloud docker -- push $(PREFIX):$(TAG)
34+ else
35+ docker push $(PREFIX):$(TAG)
36+ endif
3737
3838osx :
3939ifeq ($(BUILD_IN_CONTAINER ) ,1)
Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ GOLANG_CONTAINER = golang:1.7
1010BUILD_IN_CONTAINER = 1
1111PUSH_TO_GCR =
1212
13- ifeq ($(PUSH_TO_GCR ) ,1)
14- GCLOUD = gcloud
15- endif
16-
1713nginx-plus-ingress :
1814ifeq ($(BUILD_IN_CONTAINER ) ,1)
1915 $(DOCKER_RUN) -e CGO_ENABLED=0 $(GOLANG_CONTAINER) go build -a -installsuffix cgo -ldflags "-w -X main.version=${VERSION}" -o nginx-plus-ingress *.go
@@ -32,7 +28,11 @@ container: test nginx-plus-ingress
3228 docker build -t $(PREFIX ) :$(TAG ) .
3329
3430push : container
35- $(GCLOUD ) docker push $(PREFIX ) :$(TAG )
31+ ifeq ($(PUSH_TO_GCR ) ,1)
32+ gcloud docker -- push $(PREFIX):$(TAG)
33+ else
34+ docker push $(PREFIX):$(TAG)
35+ endif
3636
3737osx :
3838ifeq ($(BUILD_IN_CONTAINER ) ,1)
You can’t perform that action at this time.
0 commit comments