Skip to content

Commit 14caeb1

Browse files
authored
Merge pull request #1293 from fluxcd/push-flux-oci
ci: Publish signed Helm charts and manifests to GHCR
2 parents d8387a3 + cf8fcd0 commit 14caeb1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release.yml

+19
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
packages: write # needed for ghcr access
2020
steps:
2121
- uses: actions/checkout@v3
22+
- uses: azure/setup-helm@main
23+
- uses: fluxcd/flux2/action@main
2224
- uses: sigstore/cosign-installer@main
2325
- name: Prepare
2426
id: prep
@@ -70,6 +72,23 @@ jobs:
7072
token: ${{ secrets.GITHUB_TOKEN }}
7173
charts_url: https://flagger.app
7274
linting: off
75+
- name: Publish signed Helm chart to GHCR
76+
env:
77+
COSIGN_EXPERIMENTAL: 1
78+
run: |
79+
helm package charts/flagger
80+
helm push flagger-${{ steps.prep.outputs.VERSION }}.tgz oci://ghcr.io/fluxcd/charts
81+
cosign sign ghcr.io/fluxcd/charts/flagger:${{ steps.prep.outputs.VERSION }}
82+
rm flagger-${{ steps.prep.outputs.VERSION }}.tgz
83+
- name: Publish signed manifests to GHCR
84+
env:
85+
COSIGN_EXPERIMENTAL: 1
86+
run: |
87+
flux push artifact oci://ghcr.io/fluxcd/flagger-manifests:${{ steps.prep.outputs.VERSION }} \
88+
--path="./kustomize" \
89+
--source="$(git config --get remote.origin.url)" \
90+
--revision="${{ steps.prep.outputs.VERSION }}/$(git rev-parse HEAD)"
91+
cosign sign ghcr.io/fluxcd/flagger-manifests:${{ steps.prep.outputs.VERSION }}
7392
- uses: anchore/sbom-action/download-syft@v0
7493
- name: Create release and SBOM
7594
uses: goreleaser/goreleaser-action@v2

0 commit comments

Comments
 (0)