-
Notifications
You must be signed in to change notification settings - Fork 90
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
github/workflows: add multi platform docker image #348
Conversation
Codecov Report
@@ Coverage Diff @@
## main #348 +/- ##
=======================================
Coverage ? 55.82%
=======================================
Files ? 60
Lines ? 5096
Branches ? 0
=======================================
Hits ? 2845
Misses ? 1857
Partials ? 394 Continue to review full report at Codecov.
|
I will not review this as I do not know about .github/workflows format |
52ddd0c
to
ebb01c3
Compare
ebb01c3
to
65afee4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remember to update release.yml
as well
.github/workflows/build.yml
Outdated
@@ -1,4 +1,5 @@ | |||
on: | |||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remember to remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
.github/workflows/build.yml
Outdated
@@ -10,25 +11,40 @@ jobs: | |||
name: Build Docker Image | |||
steps: | |||
|
|||
- uses: actions/checkout@v2 | |||
- name: Checkout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove the name, it doesn't really add value. It defaults to actions/checkout@v2
which is clear what it is doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
.github/workflows/release.yml
Outdated
- id: get-version | ||
run: | | ||
version=$(echo "${{ github.ref }}" | cut -d / -f 3) | ||
version=$(echo "${{ github.sha }}" | cut -c1-8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this gets a tag, not a sha. So please revert and rename to get-tag
.github/workflows/release.yml
Outdated
name: ${{ github.repository }}/charon | ||
images: | | ||
ghcr.io/obolnetwork/charon/charon | ||
tags: "latest,${{steps.get-version.outputs.version}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only push the tag, build
already pushed latest
Adds multi-platform support for docker image using https://github.com/docker/build-push-action.
category: bug
ticket: #339