This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-07-27 10:53:50 +02:00
parent a83be72159
commit d2443fedc0
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC

View file

@ -55,19 +55,38 @@ jobs:
helm package "$CHART" -u -d "$DEST_DIR/$CHART_TYPE" helm package "$CHART" -u -d "$DEST_DIR/$CHART_TYPE"
done done
- name: Create new index - name: Login to GitHub Container Registry
shell: bash uses: docker/login-action@v1
working-directory: dest with:
run: | registry: ghcr.io
helm repo index . --url https://bjw-s.github.io/helm-charts/ username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push changes - name: Push Charts to GHCR
shell: bash shell: bash
working-directory: dest env:
DEST_DIR: "dest"
run: | run: |
git config user.name "bjw-s-bot[bot]" for pkg in $DEST_DIR/**/*; do
git config user.email "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>" if [ -z "${pkg:-}" ]; then
git add $(git ls-files -o --exclude-standard) break
git add index.yaml fi
git commit -m "Updated from ref: $GITHUB_SHA" helm push "${pkg}" oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm-charts
git push done
# - name: Create new index
# shell: bash
# working-directory: dest
# run: |
# helm repo index . --url https://bjw-s.github.io/helm-charts/
# - name: Push changes
# shell: bash
# working-directory: dest
# run: |
# git config user.name "bjw-s-bot[bot]"
# git config user.email "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>"
# git add $(git ls-files -o --exclude-standard)
# git add index.yaml
# git commit -m "Updated from ref: $GITHUB_SHA"
# git push