Skip to content
Permalink
Browse files

Add git tag versions

  • Loading branch information...
case committed Jul 9, 2019
1 parent 32e6f90 commit 583699e4b70e5f450da87ba3fe2339a7446857cc
Showing with 13 additions and 0 deletions.
  1. +7 −0 .circleci/config.yml
  2. +6 −0 Makefile
@@ -21,6 +21,13 @@ jobs:
- store_artifacts:
path: test-results
destination: results

# Deploy
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
make tag-version
fi
update:
working_directory: ~/go/src/github.com/zonedb/zonedb
@@ -18,3 +18,9 @@ update:
normalize:
go run cmd/zonedb/main.go -w
make zones.go

formatted_date = $(shell date -u "+%Y.%m.%d.%H")

tag-version: .git/refs/heads/master
git tag v1.$(formatted_date) $(shell cat .git/refs/heads/master)
git push --tags

0 comments on commit 583699e

Please sign in to comment.
You can’t perform that action at this time.