File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 22# vars
33IMAGENAME =mesos-compose
44REPO =avhost
5- TAG =$( shell git describe --tags --abbrev=0)
6- BRANCH =$( shell git symbolic-ref --short HEAD | xargs basename)
5+ TAG =v1.2.0
6+ BRANCH =${TAG}
77BRANCHSHORT =$(shell echo ${BRANCH} | awk -F. '{ print $$1"."$$2 }')
88BUILDDATE =$(shell date -u +% Y% m% d)
99IMAGEFULLNAME =${REPO}/${IMAGENAME}
@@ -14,11 +14,6 @@ LASTCOMMIT=$(shell git log -1 --pretty=short | tail -n 1 | tr -d " " | tr -d "UP
1414
1515.DEFAULT_GOAL := all
1616
17- ifeq (${BRANCH}, master)
18- BRANCH=latest
19- BRANCHSHORT=latest
20- endif
21-
2217build :
2318 @echo " >>>> Build Docker: latest"
2419 @docker build --build-arg TAG=${TAG} --build-arg BUILDDATE=${BUILDDATE} -t ${IMAGEFULLNAME} :latest .
@@ -28,7 +23,7 @@ build-bin:
2823 @CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags " -X main.BuildVersion=${BUILDDATE} -X main.GitVersion=${TAG} -extldflags \" -static\" " .
2924
3025push :
31- @echo " >>>> Publish docker image: " ${BRANCH}
26+ @echo " >>>> Publish docker image: " ${BRANCH} ${BRANCHSHORT}
3227 @docker buildx create --use --name buildkit
3328 @docker buildx build --sbom=true --provenance=true --platform linux/amd64 --push --build-arg TAG=${BRANCH} --build-arg BUILDDATE=${BUILDDATE} -t ${IMAGEFULLNAME} :${BRANCH} .
3429 @docker buildx build --sbom=true --provenance=true --platform linux/amd64 --push --build-arg TAG=${BRANCH} --build-arg BUILDDATE=${BUILDDATE} -t ${IMAGEFULLNAME} :${BRANCHSHORT} .
Original file line number Diff line number Diff line change 11# Changelog
22
3- ## master
3+ ## v1.2.0
44
55- CHANGE: !!!! If compose.networks is set, the network mode will be automaticly "user".
66 It can be overwritten if compose.networks.driver is set. !!!!
You can’t perform that action at this time.
0 commit comments