Skip to content

Commit

Permalink
Always build to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mbologna committed Nov 26, 2024
1 parent 1c2d4ba commit 1150423
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-scan-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
tags: |
${{ secrets.DOCKER_USERNAME }}/docker-bitlbee:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/docker-bitlbee:${{ github.sha }}
${{ secrets.DOCKER_USERNAME }}/docker-bitlbee:latest
ghcr.io/${{ github.repository_owner }}/docker-bitlbee:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Scan Docker image for vulnerabilities with Trivy
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ secrets.DOCKER_USERNAME }}/docker-bitlbee:${{ github.sha }}
image-ref: ${{ secrets.DOCKER_USERNAME }}/docker-bitlbee:latest
format: 'table'
ignore-unfixed: true
vuln-type: 'os,library'
Expand All @@ -72,5 +72,5 @@ jobs:

- name: Push Docker image
run: |
docker push ${{ secrets.DOCKER_USERNAME }}/docker-bitlbee:${{ github.sha }}
docker push ghcr.io/${{ github.repository_owner }}/docker-bitlbee:${{ github.sha }}
docker push ${{ secrets.DOCKER_USERNAME }}/docker-bitlbee:latest
docker push ghcr.io/${{ github.repository_owner }}/docker-bitlbee:latest

0 comments on commit 1150423

Please sign in to comment.