-
Notifications
You must be signed in to change notification settings - Fork 17
Docker release pipeline #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
liran-funaro
merged 12 commits into
hyperledger:main
from
anushka159-a:docker-release-pipeline
Jul 23, 2025
Merged
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
787caae
Added release file for github actions workflow
anushka159-a 976e0fd
Adding few changes in the release file
anushka159-a dd8d130
Updating the docker-release file
anushka159-a 93fa468
Updating the secrets.DOCKERHUB_TOKEN variable name
anushka159-a a914af7
Renaming ARCHBIN_PATH
anushka159-a b4b1604
Updating the docker-release file
anushka159-a 5777d75
License header added in the docker-release file
anushka159-a b6a764e
Resolving the review comments
anushka159-a d0c06e4
Modifying the Ports list
anushka159-a c8695f7
Adding logic for the Image tag prefix
anushka159-a 66d1684
Removed github repo owner LOC
anushka159-a 3b04cf3
Updating logic for Image tag prefix
anushka159-a File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # Copyright IBM Corp. All Rights Reserved. | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| name: Release Fabric-X Committer Docker Image | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" # Trigger on tags like v0.0.1 | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| jobs: | ||
| docker-release: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout source code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up QEMU (for cross-platform builds) | ||
| uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Log in to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| - name: Extract version from tag | ||
| id: extract | ||
| run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: '1.21' | ||
|
anushka159-a marked this conversation as resolved.
Outdated
|
||
|
|
||
|
anushka159-a marked this conversation as resolved.
|
||
| - name: Build cross-architecture binaries | ||
| run: make build-arch | ||
|
|
||
| - name: Build and Push Multi-Platform Docker Image for Committer | ||
| uses: docker/build-push-action@v6 | ||
|
anushka159-a marked this conversation as resolved.
|
||
| with: | ||
| context: . | ||
| file: ./docker/images/release/Dockerfile | ||
| platforms: linux/amd64,linux/arm64,linux/s390x | ||
| push: true | ||
| build-args: | | ||
| BIN=committer | ||
| ARCHBIN_PATH=archbin | ||
| PORTS=7050 | ||
|
anushka159-a marked this conversation as resolved.
Outdated
|
||
| tags: | | ||
| docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/fabric-x-committer:latest | ||
| docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/fabric-x-committer:${{ env.VERSION }} | ||
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.
Uh oh!
There was an error while loading. Please reload this page.