Skip to content

Commit cb65ad6

Browse files
authored
fix: ci issue with index update (#1061)
* fix CI with index update
1 parent da7623b commit cb65ad6

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/index-update.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,14 @@ jobs:
3434
3535
## Update index for "testkube" chart
3636
# Download published asset
37-
helm pull "oci://registry-1.docker.io/kubeshop/testkube" --version "${chart_version}" --destination ./download
37+
helm pull "oci://us-east1-docker.pkg.dev/testkube-cloud-372110/testkube/testkube" --version "${chart_version}" --destination ./download
38+
helm pull "oci://us-east1-docker.pkg.dev/testkube-cloud-372110/testkube/testkube-runner" --version "${chart_version}" --destination ./download
3839
# Rebuild index
3940
helm repo index --url oci://us-east1-docker.pkg.dev/testkube-cloud-372110/testkube --merge index.yaml ./download
4041
# Replace .tgz in URL with OCI tag
4142
sed -i "s|oci://us-east1-docker.pkg.dev/testkube-cloud-372110/testkube/testkube-$chart_version.tgz|oci://us-east1-docker.pkg.dev/testkube-cloud-372110/testkube/testkube:$chart_version|" ./download/index.yaml
42-
43-
## Update index for "testkube-runner" chart
44-
# Download published asset
45-
helm pull "oci://registry-1.docker.io/kubeshop/testkube-runner" --version "${chart_version}" --destination ./download
46-
# Rebuild index
47-
helm repo index --url oci://us-east1-docker.pkg.dev/testkube-cloud-372110/testkube --merge index.yaml ./download
48-
# Replace .tgz in URL with OCI tag
4943
sed -i "s|oci://us-east1-docker.pkg.dev/testkube-cloud-372110/testkube/testkube-runner-$chart_version.tgz|oci://us-east1-docker.pkg.dev/testkube-cloud-372110/testkube/testkube-runner:$chart_version|" ./download/index.yaml
50-
51-
44+
5245
# Check index integrity
5346
if [[ $(stat -c%s index.yaml) -gt $(stat -c%s ./download/index.yaml) ]]; then
5447
echo "New index.yaml file is shorter than the current one"

0 commit comments

Comments
 (0)