Skip to content

Commit

Permalink
properly tag as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
kovetskiy committed Mar 26, 2019
1 parent 1b1361f commit e32dc2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM golang:latest
ENV GOPATH="/go/"
ENV GO111MODULE="on"
WORKDIR /go/src/mark
COPY / .
RUN make get
RUN make build

FROM alpine:latest
RUN apk --no-cache add ca-certificates bash
WORKDIR /
COPY --from=0 /go/src/mark/mark /bin/
RUN mkdir -p /docs
WORKDIR /docs
ENTRYPOINT ["/bin/mark"]
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ push:
@echo :: pushing image $(TAG)
@docker tag $(NAME):$(VERSION) $(TAG)
@docker push $(TAG)
@docker tag $(NAME):$(VERSION) $(REMOTE)/$(NAME):latest
@docker push $(REMOTE)/$(NAME):latest

clean:
Expand Down

0 comments on commit e32dc2c

Please sign in to comment.