Build & push docker on release by caffeine-addictt · Pull Request #7311 · github-linguist/linguist · GitHub
Skip to content

Build & push docker on release#7311

Merged
lildude merged 6 commits into
github-linguist:mainfrom
caffeine-addictt:feature/push-docker-automatically
Sep 20, 2025
Merged

Build & push docker on release#7311
lildude merged 6 commits into
github-linguist:mainfrom
caffeine-addictt:feature/push-docker-automatically

Conversation

@caffeine-addictt

@caffeine-addictt caffeine-addictt commented Apr 5, 2025

Copy link
Copy Markdown
Contributor

So I noticed that the instructions for running github-linguist as a docker image requires the end-user to build it locally. Thus for the sake of convenience, I made CI that runs against new tags and pushes to GitHub's ghcr.io docker repository. I have tested these changes on this fork of mine.

Tags:

  • buildcache - for build caching (on the max setting)
  • latest or prerelease - based on the release tag (should be fine as long as we stick to semver)
  • commit SHA

I've also updated README to include pulling images down from ghcr.io.

Cheers,
-Alex Ng J. X.

Closes #4613

Signed-off-by: AlexNg <contact@ngjx.org>
Signed-off-by: AlexNg <contact@ngjx.org>
@caffeine-addictt caffeine-addictt requested a review from a team as a code owner April 5, 2025 12:29

@lildude lildude left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this. I've been meaning to come back to it as the original reservations about doing this automatically no longer apply.

Comment thread .github/workflows/package.yml Outdated
Comment thread .github/workflows/package.yml Outdated
Comment thread .github/workflows/package.yml Outdated
Comment thread .github/workflows/package.yml Outdated
Comment thread .github/workflows/package.yml Outdated
@lildude lildude changed the title ci(docker-release): Build & push docker on release Build & push docker on release Apr 6, 2025
caffeine-addictt and others added 4 commits April 6, 2025 18:16
Co-Authored-by: Colin Seymour <colin@github.com>
Signed-off-by: AlexNg <contact@ngjx.org>
Co-Authored-by: Colin Seymour <colin@github.com>
Signed-off-by: AlexNg <contact@ngjx.org>
Co-Authored-by: Colin Seymour <colin@github.com>
Signed-off-by: AlexNg <contact@ngjx.org>
Signed-off-by: AlexNg <contact@ngjx.org>
@caffeine-addictt caffeine-addictt force-pushed the feature/push-docker-automatically branch from 1acbba1 to a14b285 Compare April 6, 2025 10:49

@lildude lildude left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not going to merge this until we're about to make our next release as we won't have a docker image until then so we don't want the README referring to something that doesn't exist.

@lildude

lildude commented Jun 9, 2025

Copy link
Copy Markdown
Member

@Nixinova

Copy link
Copy Markdown
Contributor

@lildude what about now 😁

@lildude

lildude commented Sep 20, 2025

Copy link
Copy Markdown
Member

Whoops. I forgot again. Lets give it a go now.

@lildude lildude added this pull request to the merge queue Sep 20, 2025
Merged via the queue into github-linguist:main with commit 3807767 Sep 20, 2025
@lildude

lildude commented Sep 21, 2025

Copy link
Copy Markdown
Member

JesusValeraDev pushed a commit to phel-lang/linguist that referenced this pull request Apr 18, 2026
* ci(docker-release): Build & push docker on release

Signed-off-by: AlexNg <contact@ngjx.org>

* docs: Include docker command for ghcr.io image

Signed-off-by: AlexNg <contact@ngjx.org>

* refactor: Update workflow name

Co-Authored-by: Colin Seymour <colin@github.com>
Signed-off-by: AlexNg <contact@ngjx.org>

* ci: Trigger on release instead of tag push

Co-Authored-by: Colin Seymour <colin@github.com>
Signed-off-by: AlexNg <contact@ngjx.org>

* ci: Use docker/metadata-action

Co-Authored-by: Colin Seymour <colin@github.com>
Signed-off-by: AlexNg <contact@ngjx.org>

* ci: Do not setup QEMU

Signed-off-by: AlexNg <contact@ngjx.org>

---------

Signed-off-by: AlexNg <contact@ngjx.org>
Co-authored-by: Colin Seymour <colin@github.com>
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.

Official Docker image?

3 participants