@@ -2,7 +2,7 @@ name: release
2
2
3
3
on :
4
4
push :
5
- tags : [ 'v*' ]
5
+ tags : ["v*" ]
6
6
7
7
permissions :
8
8
contents : read
32
32
uses : docker/setup-qemu-action@4574d27a4764455b42196d70a065bc6853246a25 # v3.4.0
33
33
- name : Setup Docker Buildx
34
34
id : buildx
35
- uses : docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
35
+ uses : docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
36
36
- name : Setup Syft
37
37
uses : anchore/sbom-action/download-syft@f325610c9f50a54015d37c8d16cb3b0e2c8f4de0 # v0.18.0
38
38
- name : Setup Cosign
44
44
with :
45
45
registry : ghcr.io
46
46
username : fluxcdbot
47
- password : ${{ secrets.GHCR_TOKEN }}
47
+ password : ${{ secrets.GITHUB_TOKEN }}
48
48
- name : Login to Docker Hub
49
- uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
49
+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
50
50
with :
51
51
username : fluxcdbot
52
52
password : ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
@@ -82,13 +82,13 @@ jobs:
82
82
ARTIFACTS : " ${{ steps.run-goreleaser.outputs.artifacts }}"
83
83
run : |
84
84
set -euo pipefail
85
-
85
+
86
86
hashes=$(echo -E $ARTIFACTS | jq --raw-output '.[] | {name, "digest": (.extra.Digest // .extra.Checksum)} | select(.digest) | {digest} + {name} | join(" ") | sub("^sha256:";"")' | base64 -w0)
87
87
echo "hashes=$hashes" >> $GITHUB_OUTPUT
88
-
88
+
89
89
image_url=fluxcd/flux-cli:$GITHUB_REF_NAME
90
90
echo "image_url=$image_url" >> $GITHUB_OUTPUT
91
-
91
+
92
92
image_digest=$(docker buildx imagetools inspect ${image_url} --format '{{json .}}' | jq -r .manifest.digest)
93
93
echo "image_digest=$image_digest" >> $GITHUB_OUTPUT
94
94
@@ -114,7 +114,7 @@ jobs:
114
114
with :
115
115
registry : ghcr.io
116
116
username : fluxcdbot
117
- password : ${{ secrets.GHCR_TOKEN }}
117
+ password : ${{ secrets.GITHUB_TOKEN }}
118
118
- name : Login to DockerHub
119
119
uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
120
120
with :
@@ -126,7 +126,7 @@ jobs:
126
126
flux install --registry=ghcr.io/fluxcd \
127
127
--components-extra=image-reflector-controller,image-automation-controller \
128
128
--export > ./ghcr.io/flux-system/gotk-components.yaml
129
-
129
+
130
130
cd ./ghcr.io && flux push artifact \
131
131
oci://ghcr.io/fluxcd/flux-manifests:${{ steps.prep.outputs.version }} \
132
132
--path="./flux-system" \
@@ -138,7 +138,7 @@ jobs:
138
138
flux install --registry=docker.io/fluxcd \
139
139
--components-extra=image-reflector-controller,image-automation-controller \
140
140
--export > ./docker.io/flux-system/gotk-components.yaml
141
-
141
+
142
142
cd ./docker.io && flux push artifact \
143
143
oci://docker.io/fluxcd/flux-manifests:${{ steps.prep.outputs.version }} \
144
144
--path="./flux-system" \
@@ -197,4 +197,4 @@ jobs:
197
197
digest : ${{ needs.release-flux-cli.outputs.image_digest }}
198
198
registry-username : fluxcdbot
199
199
secrets :
200
- registry-password : ${{ secrets.GHCR_TOKEN }}
200
+ registry-password : ${{ secrets.GITHUB_TOKEN }}
0 commit comments