Skip to content

Commit 9709b8a

Browse files
committed
Switch OCI chart publishing from GHCR to Harbor
Charts are now pushed to oci://registry.wdr.io/charts using the robot account via REGISTRY_USERNAME/REGISTRY_PASSWORD org secrets.
1 parent a280bea commit 9709b8a

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/publish-oci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@ on:
1313
workflow_dispatch:
1414

1515
env:
16-
REGISTRY: ghcr.io
17-
REGISTRY_PATH: ghcr.io/wunderio/argo-charts
16+
REGISTRY: registry.wdr.io
17+
REGISTRY_PATH: registry.wdr.io/charts
1818

1919
jobs:
2020
publish:
2121
name: Package & Push — ${{ matrix.chart }}
2222
runs-on: ubuntu-latest
23-
permissions:
24-
contents: read
25-
packages: write
2623
strategy:
2724
fail-fast: false
2825
matrix:
@@ -54,14 +51,14 @@ jobs:
5451
PKG=$(ls /tmp/charts/${{ matrix.chart }}-*.tgz)
5552
echo "package=${PKG}" >> "$GITHUB_OUTPUT"
5653
57-
- name: Log in to GHCR
54+
- name: Log in to Harbor
5855
run: |
59-
echo "${{ secrets.GITHUB_TOKEN }}" | \
56+
echo "${{ secrets.REGISTRY_PASSWORD }}" | \
6057
helm registry login "${{ env.REGISTRY }}" \
61-
--username "${{ github.actor }}" \
58+
--username "${{ secrets.REGISTRY_USERNAME }}" \
6259
--password-stdin
6360
64-
- name: Push chart to GHCR
61+
- name: Push chart to Harbor
6562
run: |
6663
helm push "${{ steps.package.outputs.package }}" \
6764
"oci://${{ env.REGISTRY_PATH }}"

0 commit comments

Comments
 (0)