|
|
|
@ -16,32 +16,32 @@ jobs:
|
|
|
|
|
packages: write # needed for ghcr access
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
|
|
|
- name: Unshallow
|
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
|
- name: Setup Go
|
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
|
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
|
|
|
|
|
with:
|
|
|
|
|
go-version: 1.19.x
|
|
|
|
|
- name: Setup QEMU
|
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
|
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2
|
|
|
|
|
- name: Setup Docker Buildx
|
|
|
|
|
id: buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2
|
|
|
|
|
- name: Setup Syft
|
|
|
|
|
uses: anchore/sbom-action/download-syft@v0
|
|
|
|
|
uses: anchore/sbom-action/download-syft@06e109483e6aa305a2b2395eabae554e51530e1d # v0.13.1
|
|
|
|
|
- name: Setup Cosign
|
|
|
|
|
uses: sigstore/cosign-installer@main
|
|
|
|
|
uses: sigstore/cosign-installer@7bca8b41164994a7dc93749d266e2f1db492f8a2
|
|
|
|
|
- name: Setup Kustomize
|
|
|
|
|
uses: fluxcd/pkg//actions/kustomize@main
|
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2
|
|
|
|
|
with:
|
|
|
|
|
registry: ghcr.io
|
|
|
|
|
username: fluxcdbot
|
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2
|
|
|
|
|
with:
|
|
|
|
|
username: fluxcdbot
|
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
|
@ -53,10 +53,8 @@ jobs:
|
|
|
|
|
- name: Build CRDs
|
|
|
|
|
run: |
|
|
|
|
|
kustomize build manifests/crds > all-crds.yaml
|
|
|
|
|
# Pinned to commit before https://github.com/fluxcd/pkg/pull/189 due to
|
|
|
|
|
# introduction faulty behavior.
|
|
|
|
|
- name: Generate OpenAPI JSON schemas from CRDs
|
|
|
|
|
uses: fluxcd/pkg//actions/crdjsonschema@49e26aa2ee9e734c3233c560253fd9542afe18ae
|
|
|
|
|
uses: fluxcd/pkg//actions/crdjsonschema@main
|
|
|
|
|
with:
|
|
|
|
|
crd: all-crds.yaml
|
|
|
|
|
output: schemas
|
|
|
|
@ -75,7 +73,7 @@ jobs:
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
- name: Run GoReleaser
|
|
|
|
|
uses: goreleaser/goreleaser-action@v3
|
|
|
|
|
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3
|
|
|
|
|
with:
|
|
|
|
|
version: latest
|
|
|
|
|
args: release --release-notes=output/notes.md --skip-validate
|
|
|
|
@ -90,7 +88,7 @@ jobs:
|
|
|
|
|
id-token: write
|
|
|
|
|
packages: write
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
|
|
|
- name: Setup Kustomize
|
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@main
|
|
|
|
|
- name: Setup Flux CLI
|
|
|
|
@ -101,13 +99,13 @@ jobs:
|
|
|
|
|
VERSION=$(flux version --client | awk '{ print $NF }')
|
|
|
|
|
echo ::set-output name=VERSION::${VERSION}
|
|
|
|
|
- name: Login to GHCR
|
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2
|
|
|
|
|
with:
|
|
|
|
|
registry: ghcr.io
|
|
|
|
|
username: fluxcdbot
|
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2
|
|
|
|
|
with:
|
|
|
|
|
username: fluxcdbot
|
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
|
@ -135,7 +133,7 @@ jobs:
|
|
|
|
|
--path="./flux-system" \
|
|
|
|
|
--source=${{ github.repositoryUrl }} \
|
|
|
|
|
--revision="${{ github.ref_name }}/${{ github.sha }}"
|
|
|
|
|
- uses: sigstore/cosign-installer@main
|
|
|
|
|
- uses: sigstore/cosign-installer@7cc35d7fdbe70d4278a0c96779081e6fac665f88 # v2.8.0
|
|
|
|
|
- name: Sign manifests
|
|
|
|
|
env:
|
|
|
|
|
COSIGN_EXPERIMENTAL: 1
|
|
|
|
|