From 69a0617ab2520d89375995e97256b925fee4518a Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Thu, 23 Sep 2021 10:29:08 +0200 Subject: [PATCH] Move pages to use the new repository design --- .gitlab-ci.yml | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d72f36..335d1f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,27 +11,7 @@ lint:charts: script: - helm lint charts/* -# pages: -# image: -# name: codenest/helm -# entrypoint: ["/bin/sh", "-c"] -# stage: deploy -# before_script: -# - 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 -# script: -# - mkdir -p public -# - "echo \"User-Agent: *\nDisallow: /\" > ./public/robots.txt" -# - (cd public; helm package ../charts/*) -# - helm repo index public --url ${CI_PAGES_URL} -# artifacts: -# paths: -# - public -# only: -# - master@ananace/charts - -push: +pages: image: name: codenest/helm entrypoint: ["/bin/sh", "-c"] @@ -48,6 +28,7 @@ push: curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@$0" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CHANNEL}/charts" ' - mkdir -p public + - "echo \"User-Agent: *\nDisallow: /\" > ./public/robots.txt" - curl --user gitlab-ci-token:$CI_JOB_TOKEN "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CHANNEL}/index.yaml" -o public/index.yaml - sed -e "s|- charts/|- ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/${CHANNEL}/charts/|" -i public/index.yaml artifacts: