properly tag as latest

This commit is contained in:
Egor Kovetskiy 2019-03-26 14:55:38 +03:00
parent 1b1361f30b
commit e32dc2caaf
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,5 @@
FROM golang:latest
ENV GOPATH="/go/"
ENV GO111MODULE="on"
WORKDIR /go/src/mark
COPY / .
RUN make get
@ -8,6 +7,7 @@ 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"]

View File

@ -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: