From 52ed03a0996c0336d3dade9972886ac574bf4540 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Sun, 26 Sep 2021 22:47:35 +0200 Subject: [PATCH] Wait for package repo to rebuild index --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 335d1f6..1628ced 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,6 +27,8 @@ pages: curl --user gitlab-ci-token:$CI_JOB_TOKEN "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable/charts/$(basename $0)" -Iso /dev/null -w "%{http_code}" | grep 200 || 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" ' + - echo "Allowing some time for changes to percolate..." + - sleep 10 - 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