-
Notifications
You must be signed in to change notification settings - Fork 863
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
Docker develop publishing task #6893
Docker develop publishing task #6893
Conversation
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.
Justin has modified the build to only use one jdk i.e. jdk 21. This gh action may be required to be updated.
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
aebae3f
to
afb8df5
Compare
Thanks for the heads up. Rebasing after the merge of @jflo 's docker changes, I removed the explicit docker variant dockerfile linting, and tested on my fork. We now produce just 3 develop images on a merge to main: develop (multi-arch) |
# Construct the build target name | ||
BUILD_TARGET_NAME="${DATE_TIME}-develop-${SHORT_SHA}" | ||
echo "Build Target Name: $BUILD_TARGET_NAME" | ||
# Set the build target name as an environment variable |
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.
is there meant to be an export
command here based on the comment?
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.
LGTM, minor comment.
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
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.
Couple of non-blocking comments. I took the liberty of making a one character change :)
# Get the current date and time in the format YY.MM | ||
DATE_TIME=$(date +"%y.%m") | ||
# Get the short SHA of the merge commit | ||
SHORT_SHA=${GITHUB_SHA::7} |
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.
Is this equivalent to
besu/.github/workflows/docker.yml
Lines 53 to 55 in ec06ab5
- name: short sha | |
id: shortSha | |
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT |
or is SHORT_SHA only used internally here?
If the latter, then why don't we also need the set the sha
variable in the same way docker.yml does?
@@ -979,6 +979,7 @@ def getGitCommitDetails(length = 8) { | |||
def isInterimBuild(dockerBuildVersion) { | |||
return (dockerBuildVersion ==~ /.*-SNAPSHOT/) || (dockerBuildVersion ==~ /.*-alpha/) | |||
|| (dockerBuildVersion ==~ /.*-beta/) || (dockerBuildVersion ==~ /.*-RC.*/) | |||
|| (dockerBuildVersion ==~ /.*develop.*/) |
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.
comment above is out of date now :)
Publish to dockerhub on merge to the main branch Signed-off-by: garyschulte <garyschulte@gmail.com> Co-authored-by: Simon Dudley <simon.dudley@consensys.net> Signed-off-by: amsmota <antonio.mota@citi.com>
Publish to dockerhub on merge to the main branch Signed-off-by: garyschulte <garyschulte@gmail.com> Co-authored-by: Simon Dudley <simon.dudley@consensys.net> Signed-off-by: amsmota <antonio.mota@citi.com>
Publish to dockerhub on merge to the main branch Signed-off-by: garyschulte <garyschulte@gmail.com> Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Publish to dockerhub on merge to the main branch Signed-off-by: garyschulte <garyschulte@gmail.com> Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
PR description
Add a minimal github action to publish
develop
docker containers on merge to main.The task will publish one develop image per arch, and a multi-arch manifest.
e.g. the images that this task will publish on every merge to main (currently) are:
Fixed Issue(s)
Thanks for sending a pull request! Have you done the following?
doc-change-required
label to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew build
./gradlew acceptanceTest
./gradlew integrationTest
./gradlew ethereum:referenceTests:referenceTests