ci: push to oci registry

This commit is contained in:
Michael Kriese 2023-01-03 18:11:38 +01:00
parent 01d381a5cd
commit 9471ca77f8
No known key found for this signature in database
GPG key ID: B83F553A0724D44E

View file

@ -18,11 +18,15 @@ pipeline:
- helm dependency update - helm dependency update
- rm -rf tmp/ - rm -rf tmp/
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./ - helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
- git fetch origin - echo $${TOKEN} | helm registy login https://codeberg.org/api/packages/forgejo-contrib/helm/api/charts
- git checkout pages - helm push tmp/forgejo-${CI_COMMIT_TAG##v}.tgz oci://codeberg.org/api/packages/forgejo-contrib/helm/api/charts
- helm repo index tmp/ --merge index.yaml # - git fetch origin
- mv -f tmp/* . # - git checkout pages
- git config user.email "release@forgejo.org" ; git config user.name "Release Team" # - helm repo index tmp/ --merge index.yaml
- git add . # - mv -f tmp/* .
- git commit -m "update charts to ${CI_COMMIT_TAG}" -a # - git config user.email "release@forgejo.org" ; git config user.name "Release Team"
- git push origin pages # - git add .
# - git commit -m "update charts to ${CI_COMMIT_TAG}" -a
# - git push origin pages
secrets:
- token