mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-08 18:08:13 -05:00
update docker-publish.yml
This commit is contained in:
parent
6e5bb89950
commit
957aebd56c
10
.github/workflows/docker-publish.yml
vendored
10
.github/workflows/docker-publish.yml
vendored
@ -57,6 +57,7 @@ jobs:
|
|||||||
run: echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
|
run: echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
|
id: build-and-push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
@ -77,7 +78,10 @@ jobs:
|
|||||||
cosign-release: 'v2.2.2'
|
cosign-release: 'v2.2.2'
|
||||||
|
|
||||||
- name: Sign image
|
- name: Sign image
|
||||||
|
if: steps.build-and-push.outputs.digest != ''
|
||||||
env:
|
env:
|
||||||
TAGS: ${{ steps.meta.outputs.tags }}
|
COSIGN_EXPERIMENTAL: 1
|
||||||
DIGEST: ${{ steps.build-and-push.outputs.digest }}
|
run: |
|
||||||
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
|
for tag in ${{ steps.meta.outputs.tags }}; do
|
||||||
|
cosign sign --yes "${tag}@${{ steps.build-and-push.outputs.digest }}"
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user