|
|
@ -20,33 +20,33 @@ jobs:
|
|
|
|
packages: write # needed for ghcr access
|
|
|
|
packages: write # needed for ghcr access
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
|
|
- name: Unshallow
|
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Setup Go
|
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
|
|
|
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
go-version: 1.22.x
|
|
|
|
go-version: 1.22.x
|
|
|
|
cache: false
|
|
|
|
cache: false
|
|
|
|
- name: Setup QEMU
|
|
|
|
- name: Setup QEMU
|
|
|
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
|
|
|
|
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
|
|
|
|
- name: Setup Docker Buildx
|
|
|
|
- name: Setup Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
id: buildx
|
|
|
|
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
|
|
|
|
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
|
|
|
|
- name: Setup Syft
|
|
|
|
- name: Setup Syft
|
|
|
|
uses: anchore/sbom-action/download-syft@e8d2a6937ecead383dfe75190d104edd1f9c5751 # v0.16.0
|
|
|
|
uses: anchore/sbom-action/download-syft@ab9d16d4b419c9d1a02df5213fa0ebe965ca5a57 # v0.17.1
|
|
|
|
- name: Setup Cosign
|
|
|
|
- name: Setup Cosign
|
|
|
|
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
|
|
|
|
uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6.0
|
|
|
|
- name: Setup Kustomize
|
|
|
|
- name: Setup Kustomize
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@main
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@main
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
|
|
|
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
registry: ghcr.io
|
|
|
|
username: fluxcdbot
|
|
|
|
username: fluxcdbot
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
|
|
|
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
username: fluxcdbot
|
|
|
|
username: fluxcdbot
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
@ -110,7 +110,7 @@ jobs:
|
|
|
|
id-token: write
|
|
|
|
id-token: write
|
|
|
|
packages: write
|
|
|
|
packages: write
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
|
|
- name: Setup Kustomize
|
|
|
|
- name: Setup Kustomize
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@main
|
|
|
|
uses: fluxcd/pkg/actions/kustomize@main
|
|
|
|
- name: Setup Flux CLI
|
|
|
|
- name: Setup Flux CLI
|
|
|
@ -121,13 +121,13 @@ jobs:
|
|
|
|
VERSION=$(flux version --client | awk '{ print $NF }')
|
|
|
|
VERSION=$(flux version --client | awk '{ print $NF }')
|
|
|
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
|
|
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Login to GHCR
|
|
|
|
- name: Login to GHCR
|
|
|
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
|
|
|
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
registry: ghcr.io
|
|
|
|
username: fluxcdbot
|
|
|
|
username: fluxcdbot
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
- name: Login to DockerHub
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
|
|
|
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
username: fluxcdbot
|
|
|
|
username: fluxcdbot
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
|
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
|
|
|
@ -155,7 +155,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@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
|
|
|
|
- uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6.0
|
|
|
|
- name: Sign manifests
|
|
|
|
- name: Sign manifests
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
COSIGN_EXPERIMENTAL: 1
|
|
|
|
COSIGN_EXPERIMENTAL: 1
|
|
|
|