From 11b9dcdb92eb3746910cbdc6899602d02dcff3ac Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 20 Nov 2022 12:42:23 -0600 Subject: revert + version delimiter for docker tags --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f2cce4a..8fe95bbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,10 +102,12 @@ jobs: with: fetch-depth: 0 + # docker tags aren't compatible with semver, therefore + can't be used to delimit the version and sha + # https://github.com/opencontainers/distribution-spec/issues/154 - name: Set Environment Variables run: | echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - echo "VERSION=$(git describe --tags --abbrev=0).$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)+$(git rev-parse --short HEAD)" >> $GITHUB_ENV + echo "VERSION=$(git describe --tags --abbrev=0).$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV echo "REVISION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV echo "BUILD_DATE=$(date --iso-8601=s)" >> $GITHUB_ENV -- cgit v1.2.3