Skip to content

Commit

Permalink
Support to use an alternative image build tool
Browse files Browse the repository at this point in the history
Signed-off-by: rick <[email protected]>
  • Loading branch information
LinuxSuRen committed May 12, 2022
1 parent 833dfa3 commit 1de8eb5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
REPO?=kubespheredev/ks-installer
TAG:=$(shell git rev-parse --abbrev-ref HEAD | sed -e 's/\//-/g')-dev
TAG:=$(shell git rev-parse --abbrev-ref HEAD | sed -e 's/\//-/g')-dev-$(shell git rev-parse --short HEAD)
CONTAINER_CLI?=docker

build:
docker build . --file Dockerfile --tag $(REPO):$(TAG)
$(CONTAINER_CLI) build . --file Dockerfile --tag $(REPO):$(TAG)
push:
docker push $(REPO):$(TAG)
$(CONTAINER_CLI) push $(REPO):$(TAG)
all: build push

0 comments on commit 1de8eb5

Please sign in to comment.