Skip to content

Commit c26ec05

Browse files
committed
Push backup image to Docker Hub
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 818a643 commit c26ec05

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/release.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,24 @@ jobs:
3333
- uses: docker/setup-buildx-action@v1
3434
- uses: sigstore/cosign-installer@main
3535
- uses: anchore/sbom-action/download-syft@v0
36-
- name: Docker login
36+
- name: Docker login ghcr.io
3737
uses: docker/login-action@v1
3838
with:
3939
registry: ghcr.io
4040
username: fluxcdbot
4141
password: ${{ secrets.GHCR_TOKEN }}
42+
- name: Docker login docker.io
43+
uses: docker/login-action@v1
44+
with:
45+
username: fluxcdbot
46+
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
4247
- name: Docker meta
4348
id: meta
4449
uses: docker/metadata-action@v3
4550
with:
46-
images: ghcr.io/fluxcd/${{ env.CONTROLLER }}
51+
images: |
52+
fluxcd/${{ env.CONTROLLER }}
53+
ghcr.io/fluxcd/${{ env.CONTROLLER }}
4754
tags: |
4855
type=raw,value={{tag}}
4956
- name: Docker push
@@ -56,12 +63,13 @@ jobs:
5663
platforms: linux/amd64,linux/arm/v7,linux/arm64
5764
tags: ${{ steps.meta.outputs.tags }}
5865
labels: ${{ steps.meta.outputs.labels }}
59-
- name: Docker sign
66+
- name: Cosign sign ghcr.io
6067
env:
6168
COSIGN_EXPERIMENTAL: 1
6269
run: |
63-
cosign sign ${{ steps.meta.outputs.tags }}
64-
- uses: goreleaser/goreleaser-action@v2
70+
cosign sign --recursive ghcr.io/fluxcd/${{ env.CONTROLLER }}:${GITHUB_REF/refs\/tags\//}
71+
- name: GoReleaser publish signed SBOM
72+
uses: goreleaser/goreleaser-action@v2
6573
with:
6674
version: latest
6775
args: release --rm-dist

0 commit comments

Comments
 (0)