Skip to content
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

GHA to update jib image with the latest version #57

Closed
wants to merge 2 commits into from
Closed

GHA to update jib image with the latest version #57

wants to merge 2 commits into from

Conversation

surajkumar
Copy link
Contributor

@surajkumar surajkumar commented Sep 27, 2024

Context

This PR was a request from Alatheron to auto update the jib docker image when a new update is available.

How this works:

  1. A GHA was created that is scheduled to run once a week (Friday at midnight)
  2. The GHA fetches the latest version from Docker and if a new version is available...
  3. Create a new PR with the changes

Screenshots
image

image

image

image

image

@surajkumar surajkumar requested review from a team as code owners September 27, 2024 23:21
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"

branch_name="update-eclipse-temurin-$latest_version"
Copy link
Contributor

Choose a reason for hiding this comment

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

Find a better name like "JShell Java Version" or "Session Java Version".

git checkout -b "$branch_name"

git add "$gradle_file"
git commit -m "Update eclipse-temurin version to $latest_version"
Copy link
Contributor

Choose a reason for hiding this comment

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

Find a better name like "Update JShell to Java 23".

git rebase origin/develop
git push origin "$branch_name"

gh pr create --title "Update eclipse-temurin version to $latest_version" \
Copy link
Contributor

Choose a reason for hiding this comment

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

Find a better name like "Update JShell to Java 23".

git push origin "$branch_name"

gh pr create --title "Update eclipse-temurin version to $latest_version" \
--body "This PR updates the eclipse-temurin version in the JShellAPI build.gradle file from $current_version to $latest_version." \
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't specify eclipse temurin since that's not what matters. And it's not JShellAPI but JShellWrapper.
Also since it's markdown, a link could be used to link to the build.gradle.

@Alathreon
Copy link
Contributor

Closed since a new duplicate PR will replace it.

@Alathreon Alathreon closed this Oct 4, 2024
@surajkumar surajkumar deleted the update-jib-base-image branch October 4, 2024 18:44
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.

2 participants