Skip to content

feat(workflows): Add workflows for Java17-springboot3.2.x example#235

Closed
ada-dev1419 wants to merge 1 commit intounikraft-cloud:mainfrom
ada-dev1419:ada-dev1419/java17-springboot3.2.x-workflows
Closed

feat(workflows): Add workflows for Java17-springboot3.2.x example#235
ada-dev1419 wants to merge 1 commit intounikraft-cloud:mainfrom
ada-dev1419:ada-dev1419/java17-springboot3.2.x-workflows

Conversation

@ada-dev1419
Copy link
Contributor

Add stable and staging workflows for Java17-springboot3.2.x example
Tested locally with success

@razvand razvand self-requested a review December 11, 2025 23:17
@razvand razvand self-assigned this Dec 11, 2025
@razvand razvand added the enhancement New feature or request label Dec 11, 2025
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

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.

@ada-dev1419 ada-dev1419 force-pushed the ada-dev1419/java17-springboot3.2.x-workflows branch from 99b0d79 to f079011 Compare December 13, 2025 12:29
Signed-off-by: Ada Rotunjanu <ada.ro2006@gmail.com>
@ada-dev1419 ada-dev1419 reopened this Dec 13, 2025
@ada-dev1419 ada-dev1419 requested a review from razvand December 13, 2025 12:39
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Razvan Deaconescu razvand@unikraft.io
Approved-by: Razvan Deaconescu razvand@unikraft.io

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

@razvand
Copy link
Contributor

razvand commented Dec 23, 2025

This was solved by #239

@razvand razvand closed this Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants