Skip to content

Commit eed47e1

Browse files
author
Kingdon Barrett
committed
try fixup cosign
* only build main when Dockerfile changes we don't need a new `serve` image unless one of these files has changed try fixup action puts debugger * ahhhh it is working cosign OCI manifests which are addressed by digest are signed without warning Signed-off-by: Kingdon Barrett <[email protected]>
1 parent 26d1f9b commit eed47e1

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/push-workflow-serve.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ env:
66

77
on:
88
push:
9+
paths: [ Dockerfile, _scripts/flux-pull.sh ]
910
branches: [ main ] # Configure the branchs which you want to run this workflow
1011

1112
jobs:

.github/workflows/push-workflow-site.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,20 @@ jobs:
7575
run: |
7676
flux push artifact oci://${{ env.PUSH_TARGET }}:${{ steps.docker_meta.outputs.version }} --path=$BUILDDIR \
7777
--source="$(git config --get remote.origin.url)" \
78-
--revision="$(git tag --points-at HEAD)/$(git rev-parse HEAD)" | tee tmp-digest.out
78+
--revision="$(git tag --points-at HEAD)/$(git rev-parse HEAD)" 2>&1 | tee tmp-digest.out
79+
# Warning: This is not stable, flux CLI output may change
80+
cat tmp-digest.out
7981
DIGEST="$(grep '✔ artifact successfully pushed to' tmp-digest.out | awk '{print $6}')"
80-
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
82+
echo DIGEST=$DIGEST
83+
84+
echo "digest=$(grep '✔ artifact successfully pushed to' tmp-digest.out | awk '{print $6}')" >> $GITHUB_OUTPUT
85+
8186
flux tag artifact oci://${{ env.PUSH_TARGET }}:${{ steps.docker_meta.outputs.version }} \
8287
--tag testing
8388
8489
# Sign the docs tag with cosign (keyless/experimental)
8590
- name: Cosign (keyless)
86-
run: cosign sign $TAGS
91+
run: cosign sign ${{ steps.push_html.outputs.digest }}
8792
env:
8893
TAGS: ${{ steps.push_html.outputs.digest }}
8994
COSIGN_EXPERIMENTAL: true

0 commit comments

Comments
 (0)