mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
make docker image more suitable for ci
This commit is contained in:
parent
25875438dc
commit
3fa9362cd8
@ -6,8 +6,7 @@ RUN make get
|
|||||||
RUN make build
|
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 git
|
||||||
COPY --from=0 /go/src/github.com/kovetskiy/mark/mark /bin/
|
COPY --from=0 /go/src/github.com/kovetskiy/mark/mark /bin/
|
||||||
RUN mkdir -p /docs
|
RUN mkdir -p /docs
|
||||||
WORKDIR /docs
|
WORKDIR /docs
|
||||||
ENTRYPOINT ["/bin/mark"]
|
|
||||||
|
@ -251,6 +251,7 @@ Apply:
|
|||||||
echo "> Uploading ${file}";
|
echo "> Uploading ${file}";
|
||||||
docker run --rm -i -v=$(pwd):/docs
|
docker run --rm -i -v=$(pwd):/docs
|
||||||
kovetskiy/mark:latest
|
kovetskiy/mark:latest
|
||||||
|
mark
|
||||||
-u $DOCS_WIKI_USERNAME
|
-u $DOCS_WIKI_USERNAME
|
||||||
-p $DOCS_WIKI_PASSWORD
|
-p $DOCS_WIKI_PASSWORD
|
||||||
-b $DOCS_WIKI_BASE_URL
|
-b $DOCS_WIKI_BASE_URL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user