Skip to content

Commit 3af5368

Browse files
authored
Push the Docker image to ghcr.io on all pushes to main (#125)
1 parent 730766e commit 3af5368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030
id: push
3131
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
3232
with:
33-
push: ${{ startsWith(github.ref, 'refs/tags/') }} # only push to ghcr.io on tags
33+
push: ${{ github.ref == 'refs/heads/main' }} # only push to ghcr.io on the main branch
3434
tags: ghcr.io/${{github.repository}}:latest
3535
context: . # use the current directory as context, as checked out by actions/checkout -- needed for setuptools_scm

0 commit comments

Comments
 (0)