Move pages to use the new repository design
This commit is contained in:
parent
6727fdcb93
commit
69a0617ab2
1 changed files with 2 additions and 21 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue