mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-02 07:28: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
|
||||
|
||||
- name: Build and push
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
@ -77,7 +78,10 @@ jobs:
|
||||
cosign-release: 'v2.2.2'
|
||||
|
||||
- name: Sign image
|
||||
if: steps.build-and-push.outputs.digest != ''
|
||||
env:
|
||||
TAGS: ${{ steps.meta.outputs.tags }}
|
||||
DIGEST: ${{ steps.build-and-push.outputs.digest }}
|
||||
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
|
||||
COSIGN_EXPERIMENTAL: 1
|
||||
run: |
|
||||
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