From 0a28301113ddde21ef85fce4bbf846ed1011c2ff Mon Sep 17 00:00:00 2001 From: Neilpang Date: Mon, 11 Dec 2023 02:04:52 +0000 Subject: [PATCH] Update from base builder --- .github/tpl/README.tpl.md | 18 ++++++++++++++++++ .github/workflows/readme.yml | 2 ++ build.sh | 1 + 3 files changed, 21 insertions(+) diff --git a/.github/tpl/README.tpl.md b/.github/tpl/README.tpl.md index 9966797..a97ccea 100644 --- a/.github/tpl/README.tpl.md +++ b/.github/tpl/README.tpl.md @@ -5,3 +5,21 @@ Latest: {{LATEST_TAG}} +The image builder for [{{VM_OS_NAME}}-vm](https://github.com/vmactions/{{VM_OS_NAME}}-vm) + + +How to use: + +1. Use the [manual.yml](.github/workflows/manual.yml) to build manually. + + Run the workflow manually, you will get a view-only webconsole from the output of the workflow, just open the link in your web browser. + + You will also get an interactive VNC connection port from the output, you can connect to the vm by any vnc client. + +2. Run the builder locally on your Ubuntu machine. + + Just clone the repo. and run: + ```bash + bash build.sh {{LATEST_CONF}} + ``` + diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index 18b313b..a01c002 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -31,6 +31,8 @@ jobs: git switch main || (git fetch --all && git checkout -b main origin/main) echo "LATEST_MAJOR=$(echo ${{ steps.get-latest-release.outputs.tag_name }} | cut -d . -f 1)" >> $GITHUB_ENV echo "LATEST_TAG=${{ steps.get-latest-release.outputs.tag_name }}" >> $GITHUB_ENV + latest=$(ls conf/*.conf | tail -1) + echo "LATEST_CONF=$latest" >> $GITHUB_ENV - name: Update the readme.md uses: vmactions/render@v0.0.1 diff --git a/build.sh b/build.sh index 89be67e..0771387 100644 --- a/build.sh +++ b/build.sh @@ -32,6 +32,7 @@ export VM_OS_NAME export VM_RELEASE export VM_OCR export VM_DISK +export VM_ARCH ##############################################################