Skip to content

Commit

Permalink
fix: Trying to use digest to sign image
Browse files Browse the repository at this point in the history
  • Loading branch information
ciro-mota committed Aug 5, 2024
1 parent 18251f4 commit 15f67d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,21 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata for Docker
id: meta
id: docker_meta
uses: docker/metadata-action@v5
with:
images: ciromota/nessus-scanner
tags: type=sha,format=long
flavor: |
latest=true
- name: Build and Push Docker image
uses: docker/build-push-action@v5
id: build-and-push
with:
context: .
push: true
tags: ciromota/nessus-scanner:latest
tags: ${{ steps.docker_meta.outputs.tags }}

- name: Sign image with Cosign
env:
Expand Down

0 comments on commit 15f67d9

Please sign in to comment.