1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

Fixing CI for docs versioning

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
This commit is contained in:
Docs 2022-02-02 15:28:40 -03:00
parent daf116cab1
commit 0cb0719cde
2 changed files with 4 additions and 7 deletions

View file

@ -12,7 +12,6 @@
# limitations under the License.
FROM alpine:3.11
COPY requirements.txt /
RUN apk add -U --no-cache \
python3 \
@ -24,6 +23,4 @@ RUN apk add -U --no-cache \
bash \
gcc \
diffutils \
&& pip3 install -r /requirements.txt \
&& git config --global user.email "docs@external-secrets.io" \
&& git config --global user.name "Docs"
&& pip3 install -r /requirements.txt

View file

@ -42,7 +42,7 @@ all: build
.PHONY: image
image:
$(DOCKER) build -t $(MKDOCS_IMAGE) -f Dockerfile .
$(DOCKER) build -t $(MKDOCS_IMAGE) --build-arg USER_ID=$(UID) -f Dockerfile .
.PHONY: build
build: image generate $(SOURCES)
@ -53,7 +53,7 @@ build: image generate $(SOURCES)
--rm \
--user $(UID):$(GID) \
$(MKDOCS_IMAGE) \
/bin/bash -c "cd /repo && $(MIKE) deploy --update-aliases -F hack/api-docs/mkdocs.yml $(DOCS_VERSION) $(DOCS_ALIAS);"
/bin/bash -c "cd /repo && git config user.email "docs@external-secrets.io" && git config user.name "Docs" && $(MIKE) deploy --update-aliases -F hack/api-docs/mkdocs.yml $(DOCS_VERSION) $(DOCS_ALIAS);"
.PHONY: build.publish
build.publish: image generate $(SOURCES)
@ -64,7 +64,7 @@ build.publish: image generate $(SOURCES)
--rm \
--user $(UID):$(GID) \
$(MKDOCS_IMAGE) \
/bin/bash -c "cd /repo && $(MIKE) deploy --update-aliases -p -F hack/api-docs/mkdocs.yml $(DOCS_VERSION) $(DOCS_ALIAS);"
/bin/bash -c "cd /repo && git config user.email "docs@external-secrets.io" && git config user.name "Docs" && $(MIKE) deploy --update-aliases -p -F hack/api-docs/mkdocs.yml $(DOCS_VERSION) $(DOCS_ALIAS);"
.PHONY: generate
generate: