File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ DOCKER_REPO := michalsw
6
6
APPNAME := redis-client
7
7
8
8
VERSION ?= $(shell git describe --tags --always)
9
+ # if '.git/' doesn't exist
10
+ # VERSION ?= $(shell git describe --tags --always 2>/dev/null || echo testdev)
9
11
BUILD_TIME ?= $(shell date -u '+% Y-% m-% d % H:% M:% S')
10
12
LAST_COMMIT_USER ?= $(shell git log -1 --format='% cn <% ce>')
11
13
LAST_COMMIT_HASH ?= $(shell git log -1 --format=% H)
@@ -21,7 +23,8 @@ DNS_NAME ?= localhost
21
23
22
24
AZ_RG ?= redisrg
23
25
AZ_LOCATION ?= westeurope
24
- AZ_DNS_LABEL ?= $(APPNAME ) -$(VERSION )
26
+ AZ_RANDOM ?=$(shell head /dev/urandom | tr -dc a-z0-9 | head -c 7)
27
+ AZ_DNS_LABEL ?= $(APPNAME ) -$(AZ_RANDOM )
25
28
26
29
.DEFAULT_GOAL := help
27
30
.PHONY : test go-run go-build all docker-build docker-run docker-stop azure-rg azure-rg-del azure-aci azure-aci-logs azure-vnet-create azure-redis-vnet azure-aci-delete
You can’t perform that action at this time.
0 commit comments