Skip to content

Automatically build and push Docker container#61

Merged
ddundo merged 12 commits intodevfrom
52_docker
Feb 27, 2025
Merged

Automatically build and push Docker container#61
ddundo merged 12 commits intodevfrom
52_docker

Conversation

@ddundo
Copy link
Contributor

@ddundo ddundo commented Feb 14, 2025

Closes #52.

This PR adds a workflow to automatically build and push the PyGEM image to the GitHub Container Registry (ghcr.io), that will then be visible at https://github.com/orgs/PyGEM-Community/packages. It builds it from the Dockerfile that I add as well.

It's pushed to ghcr only when the workflow is triggered on the master or dev branches: that is, if it's triggered by schedule or when we merge relevant commits to the branches. But it's always built in PRs so we can check that it builds successfully.

Currently the image is quite large (9.1 GB) but can be reduced to about 2.5GB, as described in #60.

@ddundo ddundo linked an issue Feb 14, 2025 that may be closed by this pull request
@ddundo ddundo self-assigned this Feb 14, 2025
@ddundo ddundo marked this pull request as ready for review February 14, 2025 20:19
@ddundo ddundo changed the base branch from dev to 54_linting_formatting February 15, 2025 15:18
@ddundo ddundo changed the title Build and push Docker container Automatically build and push Docker container Feb 15, 2025
@ddundo ddundo changed the base branch from 54_linting_formatting to dev February 26, 2025 20:57
@ddundo
Copy link
Contributor Author

ddundo commented Feb 26, 2025

@btobers @drounce this is good to go now :)

I made one significant change since the meeting. I think we should have 2 docker images:

  • the docker image with the tag pygem:latest to follow the master branch
  • the docker image with the tag pygem:dev to follow the dev branch

@ddundo ddundo merged commit 3664594 into dev Feb 27, 2025
1 check passed
@ddundo ddundo deleted the 52_docker branch February 27, 2025 15:43
@ddundo
Copy link
Contributor Author

ddundo commented Feb 27, 2025

Thanks @btobers!

btobers pushed a commit that referenced this pull request Mar 13, 2025
Closes #52.

This PR adds a workflow to automatically build and push the PyGEM image to the GitHub Container Registry (ghcr.io), that will then be visible at https://github.com/orgs/PyGEM-Community/packages. It builds it from the Dockerfile that I add as well.

It's pushed to ghcr only when the workflow is triggered on the master or dev branches: that is, if it's triggered by schedule or when we merge relevant commits to the branches. But it's always built in PRs so we can check that it builds successfully.

Currently the image is quite large (9.1 GB) but can be reduced to about 2.5GB, as described in #60.
btobers pushed a commit to btobers/PyGEM that referenced this pull request Mar 16, 2025
Closes PyGEM-Community#52.

This PR adds a workflow to automatically build and push the PyGEM image to the GitHub Container Registry (ghcr.io), that will then be visible at https://github.com/orgs/PyGEM-Community/packages. It builds it from the Dockerfile that I add as well.

It's pushed to ghcr only when the workflow is triggered on the master or dev branches: that is, if it's triggered by schedule or when we merge relevant commits to the branches. But it's always built in PRs so we can check that it builds successfully.

Currently the image is quite large (9.1 GB) but can be reduced to about 2.5GB, as described in PyGEM-Community#60.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a Docker image

2 participants