diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml index ca1a6be862..ac4d00b51a 100644 --- a/.github/workflows/helm.yaml +++ b/.github/workflows/helm.yaml @@ -13,10 +13,6 @@ on: - 'charts/**' workflow_dispatch: -env: - REGISTRY: ghcr.io - CHART_LOCATION: weaveworks/charts - permissions: contents: read # for actions/checkout to fetch code @@ -89,27 +85,14 @@ jobs: echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT - name: Generate new chart run: | - URL=https://helm.gitops.weave.works mkdir helm-release helm package charts/gitops-server/ -d helm-release - curl -O $URL/index.yaml - helm repo index helm-release --merge=index.yaml --url=$URL - - id: auth - uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7 - with: - credentials_json: ${{ secrets.PROD_DOCS_GITOPS_UPLOAD }} - - id: upload-file - uses: google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0 # v2.2.1 - with: - path: helm-release - destination: helm.gitops.weave.works - parent: false - name: Log in to the Container registry uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 with: - registry: ${{ env.REGISTRY }} + registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Publish chart as an OCI image run: | - helm push helm-release/weave-gitops-${{ steps.new_version.outputs.version }}.tgz oci://${{ env.REGISTRY }}/${{ env.CHART_LOCATION }} + helm push helm-release/weave-gitops-${{ steps.new_version.outputs.version }}.tgz oci://ghcr.io/weaveworks/charts diff --git a/website/update-screenshots.js b/website/update-screenshots.js index 4a9f29ce88..d6d30739ac 100644 --- a/website/update-screenshots.js +++ b/website/update-screenshots.js @@ -49,8 +49,9 @@ metadata: name: ww-gitops namespace: flux-system spec: - interval: 1h0m0s - url: https://helm.gitops.weave.works + type: oci + interval: 10m0s + url: oci://ghcr.io/weaveworks/charts --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease