Browse Source

Moved git config to Dockerfile

Signed-off-by: Gustavo Fernandes de Carvalho <gustavo.carvalho@container-solutions.com>
Gustavo Fernandes de Carvalho 4 years ago
parent
commit
ade03c6a03
3 changed files with 4 additions and 3 deletions
  1. 0 1
      .github/workflows/docs.yml
  2. 3 1
      hack/api-docs/Dockerfile
  3. 1 1
      hack/api-docs/Makefile

+ 0 - 1
.github/workflows/docs.yml

@@ -4,7 +4,6 @@ on:
   push:
     branches:
       - main
-      - feature/docs-versioning
 env:
   # Common versions
   GO_VERSION: '1.17'

+ 3 - 1
hack/api-docs/Dockerfile

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

+ 1 - 1
hack/api-docs/Makefile

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