pipeline: tryfix helm push authentication
This commit is contained in:
@@ -68,4 +68,6 @@ jobs:
|
|||||||
echo "Uploading chart to Gitea registry..."
|
echo "Uploading chart to Gitea registry..."
|
||||||
echo "User: ${{ github.actor }}"
|
echo "User: ${{ github.actor }}"
|
||||||
echo "URL: https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts"
|
echo "URL: https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts"
|
||||||
curl --fail -v --user "${{ github.actor }}:${{ secrets.PACKAGES_TOKEN }}" -X POST --upload-file vhaudiquet-fr-*.tgz "https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts"
|
# Trim any trailing newline from the token
|
||||||
|
TOKEN=$(echo -n "${{ secrets.PACKAGES_TOKEN }}" | tr -d '\n')
|
||||||
|
curl --fail -v --user "${{ github.actor }}:${TOKEN}" -X POST --upload-file vhaudiquet-fr-*.tgz "https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts"
|
||||||
|
|||||||
Reference in New Issue
Block a user