|
|
|
@ -22,27 +22,27 @@ jobs:
|
|
|
|
packages: write # needed for ghcr access
|
|
|
|
packages: write # needed for ghcr access
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
|
|
- name: Unshallow
|
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Setup Go
|
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
|
|
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
go-version: 1.25.x
|
|
|
|
go-version: 1.25.x
|
|
|
|
cache: false
|
|
|
|
cache: false
|
|
|
|
- name: Setup QEMU
|
|
|
|
- name: Setup QEMU
|
|
|
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
|
|
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
|
|
|
|
- name: Setup Docker Buildx
|
|
|
|
- name: Setup Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
id: buildx
|
|
|
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
|
|
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
|
|
|
- name: Setup Syft
|
|
|
|
- name: Setup Syft
|
|
|
|
uses: anchore/sbom-action/download-syft@f8bdd1d8ac5e901a77a92f111440fdb1b593736b # v0.20.6
|
|
|
|
uses: anchore/sbom-action/download-syft@43a17d6e7add2b5535efe4dcae9952337c479a93 # v0.20.11
|
|
|
|
- name: Setup Cosign
|
|
|
|
- name: Setup Cosign
|
|
|
|
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
|
|
|
|
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
cosign-release: v2.6.1 # TODO: remove after Flux 2.8 with support for cosign v3
|
|
|
|
cosign-release: v2.6.1 # TODO: remove after Flux 2.8 with support for cosign v3
|
|
|
|
- name: Setup Kustomize
|
|
|
|
- name: Setup Kustomize
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@bf02f0a2d612cc07e0892166369fa8f63246aabb # main
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@62ddfc16c29b86028b855f5b999329c6abca4207 # main
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
|
|
|
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
@ -63,7 +63,7 @@ jobs:
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
kustomize build manifests/crds > all-crds.yaml
|
|
|
|
kustomize build manifests/crds > all-crds.yaml
|
|
|
|
- name: Generate OpenAPI JSON schemas from CRDs
|
|
|
|
- name: Generate OpenAPI JSON schemas from CRDs
|
|
|
|
uses: fluxcd/pkg/actions/crdjsonschema@bf02f0a2d612cc07e0892166369fa8f63246aabb # main
|
|
|
|
uses: fluxcd/pkg/actions/crdjsonschema@62ddfc16c29b86028b855f5b999329c6abca4207 # main
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
crd: all-crds.yaml
|
|
|
|
crd: all-crds.yaml
|
|
|
|
output: schemas
|
|
|
|
output: schemas
|
|
|
|
@ -103,9 +103,9 @@ jobs:
|
|
|
|
id-token: write
|
|
|
|
id-token: write
|
|
|
|
packages: write
|
|
|
|
packages: write
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
|
|
- name: Setup Kustomize
|
|
|
|
- name: Setup Kustomize
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@bf02f0a2d612cc07e0892166369fa8f63246aabb # main
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@62ddfc16c29b86028b855f5b999329c6abca4207 # main
|
|
|
|
- name: Setup Flux CLI
|
|
|
|
- name: Setup Flux CLI
|
|
|
|
uses: ./action/
|
|
|
|
uses: ./action/
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
@ -150,7 +150,7 @@ jobs:
|
|
|
|
--path="./flux-system" \
|
|
|
|
--path="./flux-system" \
|
|
|
|
--source=${{ github.repositoryUrl }} \
|
|
|
|
--source=${{ github.repositoryUrl }} \
|
|
|
|
--revision="${{ github.ref_name }}@sha1:${{ github.sha }}"
|
|
|
|
--revision="${{ github.ref_name }}@sha1:${{ github.sha }}"
|
|
|
|
- uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
|
|
|
|
- uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
cosign-release: v2.6.1 # TODO: remove after Flux 2.8 with support for cosign v3
|
|
|
|
cosign-release: v2.6.1 # TODO: remove after Flux 2.8 with support for cosign v3
|
|
|
|
- name: Sign manifests
|
|
|
|
- name: Sign manifests
|
|
|
|
|