Skip to content

Commit

Permalink
Merge pull request #2207 from rvolosatovs/fix/goreleaser-docker
Browse files Browse the repository at this point in the history
Fix goreleaser Docker configuration
  • Loading branch information
rvolosatovs authored and Krishna committed Mar 20, 2020
2 parents 7597832 + ac900f3 commit 406d9e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 12 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,24 @@ blobs:
dockers:
- goos: linux
goarch: amd64
dockerfile: Dockerfile
binaries:
- ttn-lw-cli
- ttn-lw-stack
image_templates:
- '{{ or (index .Env "DOCKER_IMAGE") "lorawan-stack" }}:latest'
- '{{ or (index .Env "DOCKER_IMAGE") "lorawan-stack" }}:{{ .Major }}.{{ .Minor }}'
- '{{ or (index .Env "DOCKER_IMAGE") "lorawan-stack" }}:{{ .Version }}'
skip_push: auto
extra_files:
- public

- goos: linux
goarch: amd64
dockerfile: Dockerfile
binaries:
- ttn-lw-cli
- ttn-lw-stack
image_templates:
- '{{ or (index .Env "DOCKER_IMAGE_DEV") "lorawan-stack-dev" }}:{{ .FullCommit }}'
extra_files:
- public
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,7 @@ after_success:
GO111MODULE=on go run github.com/goreleaser/goreleaser --release-notes <(printf "[Release notes](https://github.com/TheThingsNetwork/lorawan-stack/blob/${TRAVIS_TAG}/CHANGELOG.md#$(echo ${TRAVIS_TAG} | sed "s/v\([1-9]\+\)\.\([1-9]\+\)\.\([1-9]\+\)/\1\2\3---$(date +%Y-%m-%d)/"))")
else
GO111MODULE=on go run github.com/goreleaser/goreleaser --snapshot
if [[ ! -z "$DOCKER_IMAGE_DEV" ]]; then
docker tag $DOCKER_IMAGE:latest $DOCKER_IMAGE_DEV:$TRAVIS_COMMIT
docker push $DOCKER_IMAGE_DEV:$TRAVIS_COMMIT
fi
docker push $DOCKER_IMAGE_DEV:$TRAVIS_COMMIT
fi
fi
deploy:
Expand Down

0 comments on commit 406d9e4

Please sign in to comment.