diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-11-20 12:42:23 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-11-20 12:42:23 -0600 |
| commit | 11b9dcdb92eb3746910cbdc6899602d02dcff3ac (patch) | |
| tree | 30fa605e2eee95cf71e6649139c32c661de065fc | |
| parent | bb57819cab68269ed279a975b7fd14555e2c7f36 (diff) | |
| download | slskd-11b9dcdb92eb3746910cbdc6899602d02dcff3ac.tar.gz | |
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 |
