Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions .github/workflows/BuildDockerImage.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Create and publish a Docker image
name: Docker Image

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: ['main']
tags:
Expand Down Expand Up @@ -29,6 +31,8 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
# Only login when we're going to push (main branch or tags) AND not on a fork
if: github.event_name == 'push' && github.event.repository.fork == false
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -54,11 +58,14 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
# Push only when on main branch or tags (not on PRs) AND not on a fork
push: ${{ github.event_name == 'push' && github.event.repository.fork == false }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Generate artifact attestation
# Only generate attestation when we actually pushed AND not on a fork
if: github.event_name == 'push' && github.event.repository.fork == false
uses: actions/attest-build-provenance@v3
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
Expand Down