Skip to content

Commit 36a0992

Browse files
committed
only do docker build on release, there is very little point in testing that on every merge to master if pypi packaging works
1 parent 0f72f5b commit 36a0992

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ name: Build and Push Docker Image
33
on:
44
release:
55
types: [published]
6-
push:
7-
branches:
8-
- main
9-
paths:
10-
- "Dockerfile"
11-
- "src/**"
12-
- "pyproject.toml"
136
workflow_dispatch:
147

158
env:
@@ -53,7 +46,7 @@ jobs:
5346
with:
5447
context: .
5548
platforms: linux/amd64,linux/arm64
56-
push: ${{ github.event_name == 'release' }}
49+
push: true
5750
tags: ${{ steps.meta.outputs.tags }}
5851
labels: ${{ steps.meta.outputs.labels }}
5952
cache-from: type=gha

0 commit comments

Comments
 (0)