Skip to content

Commit

Permalink
set docker registry path (#432)
Browse files Browse the repository at this point in the history
* set docker registry path
fixed: #431

Signed-off-by: Avelino <t@avelino.xxx>

* fixed travis PR test

Signed-off-by: Avelino <t@avelino.xxx>
  • Loading branch information
avelino committed Sep 13, 2020
1 parent 360f542 commit d9d3ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ script:
- curl -sfL https://git.io/goreleaser | sh -s -- check
- sh testdata/migrations_test.sh
- env go test -race -covermode=atomic -coverprofile=coverage.out ./...
- test $TRAVIS_PULL_REQUEST = "false" && $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
- if [[ ($TRAVIS_PULL_REQUEST == "false") ]]; then $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi

deploy:
- provider: script
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:alpine as builder
FROM registry.hub.docker.com/library/golang:alpine as builder
COPY . /go/src/github.com/prest/prest
WORKDIR /go/src/github.com/prest/prest/cmd/prestd
ENV GO111MODULE=on
RUN apk add --no-cache git && \
go mod tidy && go build

FROM alpine
FROM registry.hub.docker.com/library/alpine
COPY --from=builder /go/src/github.com/prest/prest/cmd/prestd/prestd /app/prestd
RUN apk add --no-cache curl
ADD ./cmd/prestd/prest.toml /app/prest.toml
Expand Down

0 comments on commit d9d3ebc

Please sign in to comment.