Generate a basic index.html page

This commit is contained in:
Alexander Olofsson 2023-09-18 17:10:44 +02:00
parent 1498cd253b
commit 69cca5e544
No known key found for this signature in database
GPG key ID: D439C9470CB04C73

View file

@ -17,6 +17,7 @@ pages:
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
stage: deploy stage: deploy
before_script: 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' - grep 'repository:' charts/*/Chart.yaml | awk '{ print $3 }' | uniq | xargs -rn1 sh -c 'helm repo add $(basename $0) $0'
- helm repo update - helm repo update
- ls -d1 charts/* | xargs -rn1 helm dependency build --skip-refresh - 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 - 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 - 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/ - cp artifacthub-repo.yml ./public/
- pandoc -f markdown README.md > ./public/index.html
artifacts: artifacts:
paths: paths:
- public - public