Skip to content

Automatically build docker images when a tag starting with docker_ is pushed - #4131

Merged
marksvc merged 4 commits into
masterfrom
gha/docker-tag-builds
Oct 26, 2026
Merged

marksvc merged 4 commits into
masterfrom
gha/docker-tag-builds

Conversation

@pmachapman

@pmachapman pmachapman commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

This PR adds support for creating docker images by tagging a commit with a tag in the format docker_1.2.3-mytest


This change is Reviewable

@pmachapman
pmachapman deployed to screenshot_diff September 21, 2026 22:56 — with GitHub Actions Active
@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.20%. Comparing base (a37b256) to head (4861862).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4131   +/-   ##
=======================================
  Coverage   81.20%   81.20%           
=======================================
  Files         670      670           
  Lines       42913    42913           
  Branches     7111     7081   -30     
=======================================
  Hits        34846    34846           
  Misses       6919     6919           
  Partials     1148     1148           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@pmachapman
pmachapman marked this pull request as ready for review September 22, 2026 00:06
@pmachapman
pmachapman force-pushed the gha/docker-tag-builds branch from 99c2783 to 1cdd3ca Compare September 22, 2026 23:37
@pmachapman
pmachapman deployed to screenshot_diff September 22, 2026 23:44 — with GitHub Actions Active
@pmachapman
pmachapman force-pushed the gha/docker-tag-builds branch from 1cdd3ca to 1e716b7 Compare September 29, 2026 19:44
@pmachapman
pmachapman deployed to screenshot_diff September 29, 2026 19:51 — with GitHub Actions Active
@pmachapman
pmachapman force-pushed the gha/docker-tag-builds branch from 1e716b7 to cc27a08 Compare October 11, 2026 18:49
@pmachapman
pmachapman deployed to screenshot_diff October 11, 2026 18:56 — with GitHub Actions Active
@Nateowami

Copy link
Copy Markdown
Collaborator

Sorry this hasn't gotten reviewed in so long. I think I (and perhaps others) are not certain what the intended use-case is for this, and without a clear understanding of the purpose it's hard to review. The title says "Add support for building images from tags starting with docker_". I think the meaning is "Automatically build docker images when a tag starting with docker_ is pushed".

@Nateowami Nateowami left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Nateowami made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on pmachapman).


.github/workflows/docker-dev.yml line 69 at r1 (raw file):

          file: src/RealtimeServer/Dockerfile
          push: true
          platforms: linux/amd64,linux/arm64
  • src/SIL.XForge.Scripture/Dockerfile sets ARG ARCHITECTURE=amd64
  • src/RealtimeServer/Dockerfile sets ARG ARCHITECTURE=amd64

I don't know exactly how architectures work in Docker, but I would think these would end up conflicting, and best-case it just wouldn't actually work on arm. But again, I don't really know how this works. Presumably there's a way to update those dockerfiles to support arm

@pmachapman pmachapman changed the title Add support for building images from tags starting with docker_ Automatically build docker images when a tag starting with docker_ is pushed Oct 18, 2026
@pmachapman
pmachapman force-pushed the gha/docker-tag-builds branch from cc27a08 to 26b1382 Compare October 18, 2026 20:44
@pmachapman
pmachapman requested a review from Nateowami October 18, 2026 20:44

@pmachapman pmachapman left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I have renamed the PR. The original use case was a discussion we had where you mentioned creating test servers quickly for PRs, an I mentioned using a similar method to what Serval uses (which is tags starting with docker_). This PR is the first step towards having a test server where a PR can be spun up quickly from a Docker image.

@pmachapman made 2 comments.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on Nateowami).


.github/workflows/docker-dev.yml line 69 at r1 (raw file):

Previously, Nateowami wrote…
  • src/SIL.XForge.Scripture/Dockerfile sets ARG ARCHITECTURE=amd64
  • src/RealtimeServer/Dockerfile sets ARG ARCHITECTURE=amd64

I don't know exactly how architectures work in Docker, but I would think these would end up conflicting, and best-case it just wouldn't actually work on arm. But again, I don't really know how this works. Presumably there's a way to update those dockerfiles to support arm

I've updated the Dockerfile's architecture to use the target architecture specified by Docker (and the GHA). I'm sure I tested this on my arm64 Raspberry Pi when I originally created the Dockerfiles, but I am retesting now to ensure everything is OK.

@pmachapman
pmachapman deployed to screenshot_diff October 18, 2026 20:50 — with GitHub Actions Active
@pmachapman
pmachapman force-pushed the gha/docker-tag-builds branch from 26b1382 to 84efcee Compare October 18, 2026 21:00
@pmachapman
pmachapman deployed to screenshot_diff October 18, 2026 21:07 — with GitHub Actions Active
@pmachapman
pmachapman deployed to screenshot_diff October 18, 2026 21:40 — with GitHub Actions Active
@pmachapman
pmachapman force-pushed the gha/docker-tag-builds branch from b793fa7 to b4bf7d0 Compare October 18, 2026 21:55
@pmachapman
pmachapman deployed to screenshot_diff October 18, 2026 22:02 — with GitHub Actions Active
@pmachapman
pmachapman force-pushed the gha/docker-tag-builds branch from b4bf7d0 to 586b1f1 Compare October 18, 2026 22:07
@pmachapman
pmachapman deployed to screenshot_diff October 18, 2026 22:15 — with GitHub Actions Active
@marksvc marksvc self-assigned this Oct 22, 2026
@marksvc

marksvc commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

This is reviewable in Devin Review.

@pmachapman
pmachapman force-pushed the gha/docker-tag-builds branch from 586b1f1 to 824cf73 Compare October 26, 2026 19:12
@pmachapman
pmachapman deployed to screenshot_diff October 26, 2026 19:19 — with GitHub Actions Active
@marksvc marksvc added the ai-review-reviewer-sign-off PR reviewer has looked at AI review of change and determined no findings warrant further changes label Oct 26, 2026

@marksvc marksvc left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@marksvc reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Nateowami).

@marksvc
marksvc enabled auto-merge (squash) October 26, 2026 22:27
@marksvc
marksvc deployed to screenshot_diff October 26, 2026 22:34 — with GitHub Actions Active
@marksvc
marksvc merged commit 75b258a into master Oct 26, 2026
28 of 29 checks passed
@marksvc
marksvc deleted the gha/docker-tag-builds branch October 26, 2026 22:36

This branch was successfully deployed

1 active deployment
screenshot_diff — 48618620 Deployed Oct 26, 2026 by marksvc via Compare Screenshots #1204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review-reviewer-sign-off PR reviewer has looked at AI review of change and determined no findings warrant further changes testing not required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants