Skip to content

Commit

Permalink
Update from base builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Dec 11, 2023
1 parent 30c789c commit 0133f53
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/tpl/README.tpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
```

2 changes: 2 additions & 0 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export VM_OS_NAME
export VM_RELEASE
export VM_OCR
export VM_DISK
export VM_ARCH


##############################################################
Expand Down

0 comments on commit 0133f53

Please sign in to comment.