Skip to content

Commit

Permalink
CI: no tags in describe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karmanyaahm committed Feb 18, 2022
1 parent 8bab3ba commit 92d2800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/push_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: docker://golang:1.17
with:
args: make test
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ BUILD_DIR=./bin
DOCKER_CMD=docker run --rm -it -v "$$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.17

local:
GIT_CMT=$$(git describe --tags) && go build -o up-rewrite -ldflags "-X github.com/karmanyaahm/up_rewrite/config.Version=$$GIT_CMT"
GIT_CMT=$$(git describe --tags --always) && go build -o up-rewrite -ldflags "-X github.com/karmanyaahm/up_rewrite/config.Version=$$GIT_CMT"
local-docker:
$(DOCKER_CMD) make local
all:
Expand Down

0 comments on commit 92d2800

Please sign in to comment.