Skip to content

Commit

Permalink
Add release workflow and update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dewey committed Aug 23, 2018
1 parent 1a3e4b4 commit bd131a4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
IMAGE_NAME := tehwey/feedbridge
VERSION := 0.1.3

all: install

Expand All @@ -10,13 +11,15 @@ test:

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

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

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

.PHONY: install test
13 changes: 13 additions & 0 deletions docs/Releasing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Releasing a new version

For a new release to get pushed to Github and Docker Hub the following steps
are needed. Set version in `Makefile` and then run the following steps. Make sure
the Github Token (`GITHUB_TOKEN`) is set for goreleaser.

IMPORTANT: Set version in the Makefile before running this.

```
feedbridge|master⚡ ⇒ make image
feedbridge|master⚡ ⇒ make image-push
feedbridge|master⚡ ⇒ make release
```

0 comments on commit bd131a4

Please sign in to comment.