Browse Source

chore: revert using inline git config

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
Moritz Johner 4 years ago
parent
commit
7286c97d69
2 changed files with 2 additions and 7 deletions
  1. 0 3
      hack/api-docs/Dockerfile
  2. 2 4
      hack/api-docs/Makefile

+ 0 - 3
hack/api-docs/Dockerfile

@@ -24,6 +24,3 @@ RUN apk add -U --no-cache \
     gcc \
     gcc \
     diffutils \
     diffutils \
   && pip3 install -r /requirements.txt
   && pip3 install -r /requirements.txt
-
-RUN git config --global user.email "docs@external-secrets.io"
-RUN git config --global user.name "Docs"

+ 2 - 4
hack/api-docs/Makefile

@@ -53,8 +53,7 @@ build: image generate $(SOURCES)
 		--rm \
 		--rm \
 		--user $(UID):$(GID) \
 		--user $(UID):$(GID) \
 		$(MKDOCS_IMAGE) \
 		$(MKDOCS_IMAGE) \
-		/bin/bash -c "cd /repo && $(MIKE) deploy --ignore --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 --ignore --update-aliases -F hack/api-docs/mkdocs.yml $(DOCS_VERSION) $(DOCS_ALIAS);"
 .PHONY: build.publish
 .PHONY: build.publish
 build.publish: image generate $(SOURCES)
 build.publish: image generate $(SOURCES)
 	mkdir -p $(GENROOT)
 	mkdir -p $(GENROOT)
@@ -64,8 +63,7 @@ build.publish: image generate $(SOURCES)
 		--rm \
 		--rm \
 		--user $(UID):$(GID) \
 		--user $(UID):$(GID) \
 		$(MKDOCS_IMAGE) \
 		$(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
 .PHONY: generate
 generate:
 generate:
 	./generate.sh $(SRCDIR)/spec.md
 	./generate.sh $(SRCDIR)/spec.md