Skip to content

Commit

Permalink
test release
Browse files Browse the repository at this point in the history
  • Loading branch information
fqjony committed Dec 5, 2024
1 parent 0deba0c commit 6419deb
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
username: "usabilitydynamics"
password: ${{ secrets.DOCKER_TOKEN }}

- name: Push Signed Docker Images
- name: Push Docker Image
id: docker_push
uses: docker/build-push-action@v6
with:
context: .
Expand All @@ -54,18 +55,22 @@ jobs:
usabilitydynamics/udx-worker:${{ steps.gitversion.outputs.semVer }}
usabilitydynamics/udx-worker:latest
- name: Install Cosign
uses: sigstore/[email protected]
- name: Extract Docker Hub Image Digest
run: |
echo "IMAGE_DIGEST=${{ steps.docker_push.outputs.digest }}" >> $GITHUB_ENV
- name: Sign Docker Image with Cosign
env:
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
IMAGE_DIGEST: ${{ env.IMAGE_DIGEST }}
run: |
# Correctly format the reference with @sha256 for Cosign
cosign sign -y \
--key env://COSIGN_PRIVATE_KEY \
usabilitydynamics/udx-worker
usabilitydynamics/udx-worker@${IMAGE_DIGEST}
- name: Verify Cosign Signature
run: |
cosign verify \
usabilitydynamics/udx-worker@${IMAGE_DIGEST}

Check failure on line 73 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / Analyze YAML Files

73:57 [trailing-spaces] trailing spaces
- name: Install Trivy
run: |
Expand Down

0 comments on commit 6419deb

Please sign in to comment.