From e32dc2caaf2a3f82e79472464ce77e8a11f870fc Mon Sep 17 00:00:00 2001 From: Egor Kovetskiy Date: Tue, 26 Mar 2019 14:55:38 +0300 Subject: [PATCH] properly tag as latest --- Dockerfile | 4 ++-- Makefile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 013dc66..34f1338 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/Makefile b/Makefile index 787083e..23cd6c9 100644 --- a/Makefile +++ b/Makefile @@ -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: