feat(workflows): Add workflows for Java17-springboot3.2.x example#235
Closed
ada-dev1419 wants to merge 1 commit intounikraft-cloud:mainfrom
Closed
feat(workflows): Add workflows for Java17-springboot3.2.x example#235ada-dev1419 wants to merge 1 commit intounikraft-cloud:mainfrom
ada-dev1419 wants to merge 1 commit intounikraft-cloud:mainfrom
Conversation
razvand
requested changes
Dec 11, 2025
Contributor
razvand
left a comment
There was a problem hiding this comment.
Try the commands in the workflow, make sure they work. Adjust them to be run and run them and see if all is OK.
Convert this from a draft PR to a full PR.
99b0d79 to
f079011
Compare
Signed-off-by: Ada Rotunjanu <ada.ro2006@gmail.com>
razvand
approved these changes
Dec 13, 2025
Contributor
razvand
left a comment
There was a problem hiding this comment.
Reviewed-by: Razvan Deaconescu razvand@unikraft.io
Approved-by: Razvan Deaconescu razvand@unikraft.io
razvand
requested changes
Dec 13, 2025
Comment on lines
50
to
+71
| kraft cloud deploy \ | ||
| --no-start \ | ||
| --memory 1024 \ | ||
| --name http-java17-${GITHUB_RUN_ID} \ | ||
| --name java17-springboot3.2.x-${GITHUB_RUN_ID} \ | ||
| --runtime index.unikraft.io/official-testing/base-compat:latest \ | ||
| --subdomain http-java17-${GITHUB_RUN_ID} \ | ||
| --subdomain java17-springboot3.2.x-${GITHUB_RUN_ID} \ | ||
| -p 443:8080 \ | ||
| .; | ||
|
|
||
| # wait for the instance to start | ||
| kraft cloud vm start -w 5s http-java17-${GITHUB_RUN_ID}; | ||
| kraft cloud vm start -w 5s java17-springboot3.2.x-${GITHUB_RUN_ID}; | ||
| sleep 5; | ||
|
|
||
| curl -Lv --fail-with-body --max-time 10 https://http-java17-${GITHUB_RUN_ID}.${{ vars.UKC_METRO_STABLE }}.unikraft.app | ||
|
|
||
| curl -Lv --fail-with-body --max-time 10 https://java17-springboot3.2.x-${GITHUB_RUN_ID}.${{ vars.UKC_METRO_STABLE }}.unikraft.app | ||
| - name: Cleanup | ||
| uses: unikraft/kraftkit@staging | ||
| if: always() | ||
| with: | ||
| run: | | ||
| set -xe; | ||
|
|
||
| kraft cloud vm stop http-java17-${GITHUB_RUN_ID} || true; | ||
| kraft cloud vm logs http-java17-${GITHUB_RUN_ID} || true; | ||
| kraft cloud vm rm http-java17-${GITHUB_RUN_ID} || true; | ||
| kraft cloud img rm index.unikraft.io/test/http-java17-${GITHUB_RUN_ID} || true; | ||
| kraft cloud vm stop java17-springboot3.2.x-${GITHUB_RUN_ID} || true; | ||
| kraft cloud vm logs java17-springboot3.2.x-${GITHUB_RUN_ID} || true; | ||
| kraft cloud vm rm java17-springboot3.2.x-${GITHUB_RUN_ID} || true; | ||
| kraft cloud img rm index.unikraft.io/test/java17-springboot3.2.x-${GITHUB_RUN_ID} || true; |
Contributor
There was a problem hiding this comment.
Suggested change
| kraft cloud deploy \ | |
| --no-start \ | |
| --memory 1024 \ | |
| --name http-java17-${GITHUB_RUN_ID} \ | |
| --name java17-springboot3.2.x-${GITHUB_RUN_ID} \ | |
| --runtime index.unikraft.io/official-testing/base-compat:latest \ | |
| --subdomain http-java17-${GITHUB_RUN_ID} \ | |
| --subdomain java17-springboot3.2.x-${GITHUB_RUN_ID} \ | |
| -p 443:8080 \ | |
| .; | |
| # wait for the instance to start | |
| kraft cloud vm start -w 5s http-java17-${GITHUB_RUN_ID}; | |
| kraft cloud vm start -w 5s java17-springboot3.2.x-${GITHUB_RUN_ID}; | |
| sleep 5; | |
| curl -Lv --fail-with-body --max-time 10 https://http-java17-${GITHUB_RUN_ID}.${{ vars.UKC_METRO_STABLE }}.unikraft.app | |
| curl -Lv --fail-with-body --max-time 10 https://java17-springboot3.2.x-${GITHUB_RUN_ID}.${{ vars.UKC_METRO_STABLE }}.unikraft.app | |
| - name: Cleanup | |
| uses: unikraft/kraftkit@staging | |
| if: always() | |
| with: | |
| run: | | |
| set -xe; | |
| kraft cloud vm stop http-java17-${GITHUB_RUN_ID} || true; | |
| kraft cloud vm logs http-java17-${GITHUB_RUN_ID} || true; | |
| kraft cloud vm rm http-java17-${GITHUB_RUN_ID} || true; | |
| kraft cloud img rm index.unikraft.io/test/http-java17-${GITHUB_RUN_ID} || true; | |
| kraft cloud vm stop java17-springboot3.2.x-${GITHUB_RUN_ID} || true; | |
| kraft cloud vm logs java17-springboot3.2.x-${GITHUB_RUN_ID} || true; | |
| kraft cloud vm rm java17-springboot3.2.x-${GITHUB_RUN_ID} || true; | |
| kraft cloud img rm index.unikraft.io/test/java17-springboot3.2.x-${GITHUB_RUN_ID} || true; | |
| kraft cloud deploy \ | |
| --no-start \ | |
| --memory 1024 \ | |
| --name java17-springboot32x-${GITHUB_RUN_ID} \ | |
| --runtime index.unikraft.io/official-testing/base-compat:latest \ | |
| --subdomain java17-springboot32x-${GITHUB_RUN_ID} \ | |
| -p 443:8080 \ | |
| .; | |
| # wait for the instance to start | |
| kraft cloud vm start -w 5s java17-springboot32x-${GITHUB_RUN_ID}; | |
| sleep 5; | |
| curl -Lv --fail-with-body --max-time 10 https://java17-springboot32x-${GITHUB_RUN_ID}.${{ vars.UKC_METRO_STABLE }}.unikraft.app | |
| - name: Cleanup | |
| uses: unikraft/kraftkit@staging | |
| if: always() | |
| with: | |
| run: | | |
| set -xe; | |
| kraft cloud vm stop java17-springboot32x-${GITHUB_RUN_ID} || true; | |
| kraft cloud vm logs java17-springboot32x-${GITHUB_RUN_ID} || true; | |
| kraft cloud vm rm java17-springboot32x-${GITHUB_RUN_ID} || true; | |
| kraft cloud img rm index.unikraft.io/test/java17-springboot32x-${GITHUB_RUN_ID} || true; |
You cannot have dots (.) in the instance nam or domain name.
Contributor
|
This was solved by #239 |
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.
Add stable and staging workflows for Java17-springboot3.2.x example
Tested locally with success