Skip to content

Commit

Permalink
Change versioning in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dewey committed Aug 29, 2018
1 parent 4936edc commit 030daf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
IMAGE_NAME := tehwey/feedbridge
VERSION := 0.1.3
VERSION_DOCKER := $(shell git describe --abbrev=0 --tags | sed 's/^v\(.*\)/\1/')

all: install

Expand All @@ -11,14 +11,14 @@ test:

image:
docker build -t $(IMAGE_NAME) .
docker tag $(IMAGE_NAME):latest $(IMAGE_NAME):$(VERSION)
docker tag $(IMAGE_NAME):latest $(IMAGE_NAME):$(VERSION_DOCKER)

image-push:
docker push $(IMAGE_NAME):latest
docker push $(IMAGE_NAME):$(VERSION)
docker push $(IMAGE_NAME):$(VERSION_DOCKER)

release:
git tag -a $(VERSION) -m "Release" || true
git tag -a $(VERSION) -m "Release $(VERSION)" || true
git push origin $(VERSION)
goreleaser --rm-dist

Expand Down

0 comments on commit 030daf5

Please sign in to comment.