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 04aa7b8 commit 0deba0c
Showing 1 changed file with 10 additions and 31 deletions.
41 changes: 10 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,35 +38,24 @@ jobs:
useConfigFile: true
configFilePath: ci/git-version.yml

- name: Build Multi-Arch Docker Image
id: build-image
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: "usabilitydynamics"
password: ${{ secrets.DOCKER_TOKEN }}

- name: Push Signed Docker Images
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: false # Do not push yet
load: true # Ensure the built image is loaded into the local Docker environment
push: true
tags: |
usabilitydynamics/udx-worker:${{ steps.gitversion.outputs.semVer }}
usabilitydynamics/udx-worker:latest
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: "usabilitydynamics"
password: ${{ secrets.DOCKER_TOKEN }}

- name: Install Cosign
uses: sigstore/[email protected]

- name: Extract Image Digest
id: extract-digest
run: |
# Extract the digest of the built image
IMAGE_DIGEST=$(docker inspect usabilitydynamics/udx-worker:${{ steps.gitversion.outputs.semVer }} | grep -o 'sha256:[a-f0-9]\{64\}' | head -n 1)
echo "IMAGE_DIGEST=$IMAGE_DIGEST" >> $GITHUB_ENV
shell: bash
uses: sigstore/[email protected]

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

View workflow job for this annotation

GitHub Actions / Analyze YAML Files

58:47 [trailing-spaces] trailing spaces

- name: Sign Docker Image with Cosign
env:
Expand All @@ -76,17 +65,7 @@ jobs:
# Correctly format the reference with @sha256 for Cosign
cosign sign -y \
--key env://COSIGN_PRIVATE_KEY \
usabilitydynamics/udx-worker@${IMAGE_DIGEST}
- name: Push Signed Docker Images
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: true
tags: |
usabilitydynamics/udx-worker:${{ steps.gitversion.outputs.semVer }}
usabilitydynamics/udx-worker:latest
usabilitydynamics/udx-worker

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

View workflow job for this annotation

GitHub Actions / Analyze YAML Files

68:41 [trailing-spaces] trailing spaces
- name: Install Trivy
run: |
Expand Down

0 comments on commit 0deba0c

Please sign in to comment.