Compare commits

...

4 Commits

Author SHA1 Message Date
b30aaea66b Merge tag '0.0.0' into develop
First release
2022-05-11 16:21:20 +02:00
644e1af76d Merge branch 'release/0.0.0' 2022-05-11 16:21:12 +02:00
8617438ff7 Use git to generate project version 2022-05-11 16:20:38 +02:00
2734f49ab0 Use git to generate docker tag 2022-05-11 16:18:04 +02:00
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
DOKKU_HOST := dokku@dev.lookingfora.name DOKKU_HOST := dokku@dev.lookingfora.name
SHELL := /bin/bash SHELL := /bin/bash
DOCKER_IMAGE_NAME ?= bornholm/hydra-passwordless DOCKER_IMAGE_NAME ?= bornholm/hydra-passwordless
DOCKER_IMAGE_TAG ?= $(shell date +%Y%m%d%H%M) DOCKER_IMAGE_TAG ?= $(shell git describe --always)
build: build:
CGO_ENABLED=0 go build -v -o bin/server ./cmd/server CGO_ENABLED=0 go build -v -o bin/server ./cmd/server

View File

@ -45,8 +45,7 @@ function current_commit_ref {
} }
function current_version { function current_version {
local latest_tag=$(git describe --abbrev=0 2>/dev/null) git describe --always
echo ${latest_tag:-0.0.0}
} }
function copy { function copy {