mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
ci: 🧠
This commit is contained in:
parent
a83be72159
commit
d2443fedc0
1 changed files with 32 additions and 13 deletions
45
.github/workflows/charts-release.yaml
vendored
45
.github/workflows/charts-release.yaml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue