diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index a0a2072..ad13436 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -17,9 +17,30 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Build and export + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + images: ghcr.io/${{ github.repository }} + + - name: Build and push uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile - push: false + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + - name: Docker Scout + uses: docker/scout-action@v1 + with: + command: cves + image: ${{ steps.meta.outputs.tags }}