Skip to content

Commit fc005be

Browse files
committed
gh: Cleanup
1 parent 19a1d43 commit fc005be

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/build_docker.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Build Docker images
22
on:
3-
workflow_dispatch:
43
push:
54
branches: ["main"]
65
tags: ["v*"]
@@ -12,10 +11,9 @@ env:
1211
REGISTRY_IMAGE: educelab/pgs-recon
1312

1413
permissions:
14+
id-token: write
1515
contents: read
1616
packages: write
17-
attestations: write
18-
id-token: write
1917

2018
jobs:
2119
build_platform_images:
@@ -74,7 +72,6 @@ jobs:
7472
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
7573

7674
- name: Login to GitHub Container Registry
77-
if: github.event_name != 'pull_request'
7875
uses: docker/login-action@v2
7976
with:
8077
registry: ${{ env.REGISTRY }}
@@ -94,21 +91,19 @@ jobs:
9491
build-args: |
9592
BASE_IMAGE=${{ matrix.base_image }}
9693
USE_CUDA=${{ matrix.use_cuda }}
97-
push: ${{ github.event_name != 'pull_request' }}
94+
push: true
9895
platforms: linux/${{ matrix.architecture }}
9996
labels: ${{ steps.meta.outputs.labels }}
10097
tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
10198
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
10299

103100
- name: Export digest
104-
if: ${{ github.event_name != 'pull_request' }}
105101
run: |
106102
mkdir -p ${{ runner.temp }}/digests${{ matrix.tag_suffix }}
107103
digest="${{ steps.push.outputs.digest }}"
108104
touch "${{ runner.temp }}/digests${{ matrix.tag_suffix }}/${digest#sha256:}"
109105
110106
- name: Upload digest
111-
if: ${{ github.event_name != 'pull_request' }}
112107
uses: actions/upload-artifact@v4
113108
with:
114109
name: digests-linux-${{ matrix.architecture }}${{ matrix.tag_suffix }}
@@ -157,7 +152,6 @@ jobs:
157152
uses: docker/setup-buildx-action@v3
158153

159154
- name: Login to GitHub Container Registry
160-
if: github.event_name != 'pull_request'
161155
uses: docker/login-action@v2
162156
with:
163157
registry: ${{ env.REGISTRY }}

0 commit comments

Comments
 (0)