Skip to content

Commit

Permalink
Add docker images as part of gorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
frapposelli committed Feb 28, 2018
1 parent 7b0f1a3 commit a09186e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ archive:
- README*
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
dockers:
- image: frapposelli/wwhrd
goos: linux
goarch: amd64
binary: wwhrd
tag_templates:
- "{{ .Tag }}"
- "v{{ .Major }}"
- "v{{ .Major }}.{{ .Minor }}"
- latest
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ go:
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
- tip
- '1.10'

services:
- docker

install:
- echo "Skipping the default go get..."
Expand All @@ -21,6 +23,7 @@ script:

after_success:
- bash <(curl -s https://codecov.io/bash) -f .cover/cover.out
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"

deploy:
- provider: script
Expand All @@ -29,3 +32,4 @@ deploy:
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
go: '1.10'
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM scratch
LABEL maintainer="[email protected]"
COPY wwhrd /
ENTRYPOINT [ "/wwhrd" ]

0 comments on commit a09186e

Please sign in to comment.