Skip to content

Commit 8ae62d7

Browse files
committed
UPDATE: v1.2.0
1 parent a5a8e00 commit 8ae62d7

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Makefile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#vars
33
IMAGENAME=mesos-compose
44
REPO=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}
77
BRANCHSHORT=$(shell echo ${BRANCH} | awk -F. '{ print $$1"."$$2 }')
88
BUILDDATE=$(shell date -u +%Y%m%d)
99
IMAGEFULLNAME=${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-
2217
build:
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

3025
push:
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} .

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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. !!!!

0 commit comments

Comments
 (0)