Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit e5e4d6b

Browse files
committed
Updating makefile.
1 parent a5c30a0 commit e5e4d6b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
.PHONY: push
2+
3+
version := $$(echo "$$(cd ./kaniko && git describe)-$$(git rev-parse --short HEAD)")
14

25
push:
3-
docker buildx rm "build-$$(git rev-parse --short HEAD)" || true
4-
docker buildx create --platform linux/amd64 --use --name "build-$$(git rev-parse --short HEAD)"
6+
docker buildx rm "build-$(version)" || true
7+
docker buildx create --platform linux/amd64 --use --name "build-$(version)"
58
printf "$$(cat kaniko/deploy/Dockerfile_debug)\n\n$$(cat Dockerfile)" | docker buildx build --platform linux/amd64 \
69
-f - \
710
-t containers.harderthanitneedstobe.com/kaniko-ci:latest \
8-
-t containers.harderthanitneedstobe.com/kaniko-ci:$$(git rev-parse --short HEAD) \
11+
-t containers.harderthanitneedstobe.com/kaniko-ci:$(version) \
912
-t ghcr.io/harderthanitneedstobe/kaniko-ci:latest \
10-
-t ghcr.io/harderthanitneedstobe/kaniko-ci:$$(git rev-parse --short HEAD) \
13+
-t ghcr.io/harderthanitneedstobe/kaniko-ci:$(version) \
1114
--push ./kaniko

0 commit comments

Comments
 (0)