Skip to content

Commit

Permalink
Merge pull request #53 from janboll/fix-makefile
Browse files Browse the repository at this point in the history
Fix makefile
  • Loading branch information
janboll authored Sep 6, 2022
2 parents 9214743 + fb2dcbf commit aafd314
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ build:

.PHONY: image
image:
$(CONTAINER_ENGINE) build -t $(REPO):$(TAG) .
ifeq ($(CONTAINER_ENGINE), podman)
@DOCKER_BUILDKIT=1 $(CONTAINER_ENGINE) build --no-cache -t $(REPO):latest . --progress=plain
else
@DOCKER_BUILDKIT=1 $(CONTAINER_ENGINE) --config=$(DOCKER_CONF) build --no-cache -t $(REPO):latest . --progress=plain
endif
@$(CONTAINER_ENGINE) tag $(REPO):latest $(REPO):$(TAG)

.PHONY: image-push
image-push:
$(CONTAINER_ENGINE) tag $(REPO):$(TAG) $(REPO):latest
$(CONTAINER_ENGINE) --config=$(DOCKER_CONF) push $(REPO):$(TAG)
$(CONTAINER_ENGINE) --config=$(DOCKER_CONF) push $(REPO):latest

Expand Down

0 comments on commit aafd314

Please sign in to comment.