Skip to content

Conversation

@ldionne
Copy link
Member

@ldionne ldionne commented Oct 16, 2025

Previously, we'd only build the Docker image on pushes and PRs to main. In particular, that excluded tags (even on main). With this patch, build the Docker image all the time, but only push it to ghcr.io when we tag, which is consistent with how we upload to PyPI.

Previously, we'd only build the Docker image on pushes and PRs to main.
In particular, that excluded tags (even on main). With this patch, build
the Docker image all the time, but only push it to ghcr.io when we tag,
which is consistent with how we upload to PyPI.
@ldionne ldionne merged commit d303ff0 into llvm:main Oct 16, 2025
8 checks passed
@ldionne ldionne deleted the review/build-docker-image-more-often branch October 16, 2025 19:12
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants