Skip to content

Commit

Permalink
Add Dockerfile to build vendor-cli via goreleaser.
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ committed Aug 19, 2019
1 parent e6872bb commit 39cc9fd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ snapshot:
name_template: SNAPSHOT-{{ .Commit }}
build:
hooks: {}
dockers:
- dockerfile: deploy/Dockerfile
image_templates:
- "replicated/vendor-cli:latest"
- "replicated/vendor-cli:{{ .Major }}"
- "replicated/vendor-cli:{{ .Major }}.{{ .Minor }}"
- "replicated/vendor-cli:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ script:
- make docs # we care less about the generated docs than we do about the fact that the command is not broken
after_success:
- test -n "$TRAVIS_TAG" && make package_docker_docs
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKERHUB_DOCKER_USER" -p="$DOCKERHUB_DOCKER_PASS"
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
- test -n "$TRAVIS_TAG" && make publish-pacts
7 changes: 7 additions & 0 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk add --no-cache ca-certificates curl git && update-ca-certificates
COPY replicated /replicated
ENV IN_CONTAINER 1
LABEL "com.replicated.vendor_cli"="true"
WORKDIR /out
ENTRYPOINT [ "/replicated" ]

0 comments on commit 39cc9fd

Please sign in to comment.