From 69cca5e5448893d2ea18c66fc4eef6c2f6d0d040 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Mon, 18 Sep 2023 17:10:44 +0200 Subject: [PATCH] Generate a basic index.html page --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26f2a77..0770155 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,7 @@ pages: entrypoint: ["/bin/sh", "-c"] stage: deploy before_script: + - apk add pandoc --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community --no-cache - grep 'repository:' charts/*/Chart.yaml | awk '{ print $3 }' | uniq | xargs -rn1 sh -c 'helm repo add $(basename $0) $0' - helm repo update - ls -d1 charts/* | xargs -rn1 helm dependency build --skip-refresh @@ -34,6 +35,7 @@ pages: - curl --user gitlab-ci-token:$CI_JOB_TOKEN "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CHANNEL}/index.yaml" -o repo-index.yaml - sed -e "s|- charts/|- ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CHANNEL}/charts/|" repo-index.yaml > ./public/index.yaml - cp artifacthub-repo.yml ./public/ + - pandoc -f markdown README.md > ./public/index.html artifacts: paths: - public