ci: fix version metadata in non-releases (#1836)

This commit is contained in:
Travis Groth 2021-02-01 10:53:57 -05:00 committed by GitHub
parent cc85ea601d
commit 5558f81ffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -14,6 +14,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

View file

@ -13,7 +13,7 @@ BUILDTAGS :=
# Populate version variables
# Add to compile time flags
VERSION := $(shell git describe --abbrev=0 --tags)
VERSION := $(shell git describe --tags)
GITCOMMIT := $(shell git rev-parse --short HEAD)
BUILDMETA:=
GITUNTRACKEDCHANGES := $(shell git status --porcelain --untracked-files=no)