mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
properly tag as latest
This commit is contained in:
parent
1b1361f30b
commit
e32dc2caaf
@ -1,6 +1,5 @@
|
|||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
ENV GOPATH="/go/"
|
ENV GOPATH="/go/"
|
||||||
ENV GO111MODULE="on"
|
|
||||||
WORKDIR /go/src/mark
|
WORKDIR /go/src/mark
|
||||||
COPY / .
|
COPY / .
|
||||||
RUN make get
|
RUN make get
|
||||||
@ -8,6 +7,7 @@ RUN make build
|
|||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --no-cache add ca-certificates bash
|
RUN apk --no-cache add ca-certificates bash
|
||||||
WORKDIR /
|
|
||||||
COPY --from=0 /go/src/mark/mark /bin/
|
COPY --from=0 /go/src/mark/mark /bin/
|
||||||
|
RUN mkdir -p /docs
|
||||||
|
WORKDIR /docs
|
||||||
ENTRYPOINT ["/bin/mark"]
|
ENTRYPOINT ["/bin/mark"]
|
||||||
|
1
Makefile
1
Makefile
@ -35,6 +35,7 @@ push:
|
|||||||
@echo :: pushing image $(TAG)
|
@echo :: pushing image $(TAG)
|
||||||
@docker tag $(NAME):$(VERSION) $(TAG)
|
@docker tag $(NAME):$(VERSION) $(TAG)
|
||||||
@docker push $(TAG)
|
@docker push $(TAG)
|
||||||
|
@docker tag $(NAME):$(VERSION) $(REMOTE)/$(NAME):latest
|
||||||
@docker push $(REMOTE)/$(NAME):latest
|
@docker push $(REMOTE)/$(NAME):latest
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user