Skip to content
Merged
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
8 changes: 3 additions & 5 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Build Docker image

on:
push:
branches: ['main']
pull_request:
branches: ['main']
- push
- pull_request

permissions:
contents: read
Expand Down Expand Up @@ -32,6 +30,6 @@ jobs:
id: push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
push: ${{ github.event_name == 'push' }}
push: ${{ startsWith(github.ref, 'refs/tags/') }} # only push to ghcr.io on tags
tags: ghcr.io/${{github.repository}}:latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're pushing tags then we should probably also tag the docker image with the corresponding github tag

context: . # use the current directory as context, as checked out by actions/checkout -- needed for setuptools_scm
Loading