Skip to content

Commit

Permalink
Allow configuring docker image when running make
Browse files Browse the repository at this point in the history
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
  • Loading branch information
mikkeloscar committed Sep 14, 2018
1 parent 4ee639c commit 9ed3835
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
#
IMAGE ?= amazon/amazon-k8s-cni

.PHONY: build-linux clean docker docker-build lint unit-test vet

Expand All @@ -31,8 +32,8 @@ docker-build:

# Build docker image
docker: docker-build
@docker build -f scripts/dockerfiles/Dockerfile.release -t "amazon/amazon-k8s-cni:$(VERSION)" .
@echo "Built Docker image \"amazon/amazon-k8s-cni:$(VERSION)\""
@docker build -f scripts/dockerfiles/Dockerfile.release -t "$(IMAGE):$(VERSION)" .
@echo "Built Docker image \"$(IMAGE):$(VERSION)\""

# unit-test
unit-test:
Expand Down

0 comments on commit 9ed3835

Please sign in to comment.