diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-11-20 12:44:22 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-20 12:44:22 -0600 |
| commit | ca7476025c3e63b3e2d78ecc601ef3001c3cff84 (patch) | |
| tree | 30fa605e2eee95cf71e6649139c32c661de065fc | |
| parent | 69955472a1bea26438392d0f22ecb46ed913e966 (diff) | |
| parent | 4b89c501aa0e7fa6153e9e6c98a324d9614348d1 (diff) | |
| download | slskd-ca7476025c3e63b3e2d78ecc601ef3001c3cff84.tar.gz | |
Merge pull request #764 from slskd/fix-version-everywhere
Revert + version delimiter for docker tags
| -rw-r--r-- | .github/workflows/ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
