Просмотр исходного кода

Merge pull request #666 from external-secrets/fix/docs-versioning

Fixing CI for docs versioning
paul-the-alien[bot] 4 лет назад
Родитель
Сommit
6724576556
3 измененных файлов с 5 добавлено и 8 удалено
  1. 1 1
      deploy/charts/external-secrets/README.md
  2. 1 4
      hack/api-docs/Dockerfile
  3. 3 3
      hack/api-docs/Makefile

+ 1 - 1
deploy/charts/external-secrets/README.md

@@ -4,7 +4,7 @@
 
 [//]: # (README.md generated by gotmpl. DO NOT EDIT.)
 
-![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![Version: 0.3.11](https://img.shields.io/badge/Version-0.3.11-informational?style=flat-square)
+![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square)
 
 External secret management for Kubernetes
 

+ 1 - 4
hack/api-docs/Dockerfile

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

+ 3 - 3
hack/api-docs/Makefile

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