fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

docker: use go.mod psuedo-version for tag

This is the psuedo-version that go.mod uses. We use the same version string so
that sourcegraph/sourcegraph's go.mod is kept in sync with the version we
publish.

Change-Id: I7e65806210bc102d3421a747507e4ebb4a3ccb15

+14 -1
+1 -1
.github/workflows/ci.yml
··· 26 26 # This is the same tag we used for zoekt in the infrastructure repo. 27 27 - name: version 28 28 id: version 29 - run: echo "::set-output name=value::`date -u +'0.0.%Y%m%d%H%M%S'`-`git rev-parse --short HEAD`" 29 + run: .github/workflows/docker-version.sh 30 30 31 31 - name: build-zoekt 32 32 uses: docker/build-push-action@v1
+13
.github/workflows/docker-version.sh
··· 1 + #!/usr/bin/env bash 2 + 3 + # This is the psuedo-version that go.mod uses. We use the same version string 4 + # so that sourcegraph/sourcegraph's go.mod is kept in sync with the version we 5 + # publish. 6 + 7 + printf "::set-output name=value::" 8 + 9 + TZ=UTC git --no-pager show \ 10 + --quiet \ 11 + --abbrev=12 \ 12 + --date='format-local:%Y%m%d%H%M%S' \ 13 + --format="0.0.0-%cd-%h"