GitHub Action: Build & Push Docker Image to quay.io, docker.io, ghcr.io#18
Merged
GitHub Action: Build & Push Docker Image to quay.io, docker.io, ghcr.io#18
Conversation
Co-authored-by: cniweb <2334906+cniweb@users.noreply.github.com>
…badge Co-authored-by: cniweb <2334906+cniweb@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] GitHub Action: Build & Push Docker Image to quay.io, docker.io, ghcr.io
GitHub Action: Build & Push Docker Image to quay.io, docker.io, ghcr.io
Jul 16, 2025
Owner
|
@copilot Tag images with both latest and as version (Parameter $version from build.sh) |
Co-authored-by: cniweb <2334906+cniweb@users.noreply.github.com>
Contributor
Author
Updated the workflow to tag images with version from build.sh parameter. The workflow now extracts the version dynamically and tags images with latest, version (6.22.2), and commit SHA across all registries. Commit: 59c478b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a comprehensive GitHub Action workflow to automatically build and push Docker images to multiple container registries on every push to the
mainbranch.Changes Made
1. Created
.github/workflows/docker-build.ymlmainbranch onlydocker.io/cniweb/xmrig)ghcr.io/cniweb/xmrig)quay.io/cniweb/xmrig)latestand commit SHA (${{ github.sha }})build.shscript for building2. Enhanced
build.shScriptbuild-onlyparameter to enable CI/CD usage./build.sh build-only, builds the image but skips registry pushes3. Updated
README.mdlatest,<commit-sha>, version-specific)Workflow Features
The workflow performs the following steps:
build.shscript in build-only modelatestand commit SHARequired Secrets
The following GitHub secrets need to be configured for the workflow to function:
DOCKERHUB_USERNAMEandDOCKERHUB_TOKENGHCR_USERNAMEandGHCR_TOKENQUAY_USERNAMEandQUAY_PASSWORDBenefits
build.shusage remains unchangedFixes #17.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.