Skip to content

Commit

Permalink
ci(release): remove publish to https Helm repository
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed Jan 20, 2025
1 parent 320c0a0 commit 1f7b958
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
5 changes: 3 additions & 2 deletions website/update-screenshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f7b958

Please sign in to comment.