-
Notifications
You must be signed in to change notification settings - Fork 79
/
Makefile
30 lines (25 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
COMMIT := $(shell git rev-parse --short HEAD)
VERSION := dev-$(shell git describe --tags $(shell git rev-list --tags --max-count=1))
build-base-podman:
docker build base -f base/podman/Dockerfile -t kubespheredev/builder-base:$(VERSION)-podman
push-base-podman:
docker push kubespheredev/builder-base:$(VERSION)-podman
build-maven-podman:
docker build maven -f maven/podman/Dockerfile -t kubespheredev/builder-maven:$(VERSION)-podman
push-maven-podman:
docker push kubespheredev/builder-maven:$(VERSION)-podman
build-maven-jdk11:
docker build maven -f maven/Dockerfile -t kubespheredev/builder-maven:$(VERSION)-jdk11 \
--build-arg JDK_VERSION=11
push-maven-jdk11:
docker push kubespheredev/builder-maven:$(VERSION)-jdk11
build-maven-jdk17:
docker build maven -f maven/Dockerfile -t kubespheredev/builder-maven:$(VERSION)-jdk17 \
--build-arg JDK_VERSION=17 --build-arg JDK_HOME=/usr/java/default
push-maven-jdk17:
docker push kubespheredev/builder-maven:$(VERSION)-jdk17
build-maven-jdk17-podman:
docker build maven -f maven/podman/Dockerfile -t kubespheredev/builder-maven:$(VERSION)-jdk17-podman \
--build-arg JDK_VERSION=17 --build-arg JDK_HOME=/usr/java/default
push-maven-jdk17-podman:
docker push kubespheredev/builder-maven:$(VERSION)-jdk17-podman