chore(make): use a timestamp suffix to the default version (#6559)

When doing local builds, the `VERSION` was always set to `development`.
When running this local build, database migration would be skipped,
as the version did not change.

This change suffixes `developement` with the dynamic timestamp from `now`,
so that migrations are always executed
when developing.
This commit is contained in:
Tim Möhlmann 2023-09-14 16:30:59 +03:00 committed by GitHub
parent 5c6a3e968a
commit b7d8dc2d72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ gen_authopt_path := "$(go_bin)/protoc-gen-authoption"
gen_zitadel_path := "$(go_bin)/protoc-gen-zitadel"
now := $(shell date --rfc-3339=seconds | sed 's/ /T/')
VERSION ?= development
VERSION ?= development-$(now)
COMMIT_SHA ?= $(shell git rev-parse HEAD)
.PHONY: compile