-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
name: shell | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
runshell: | ||
runs-on: macos-12 | ||
name: Start a dragonflybsd shell | ||
steps: | ||
- name: Starting a dragonflybsd VM, please wait. It may take 3 minutes | ||
id: shell | ||
uses: vmactions/dragonflybsd-vm@main | ||
with: | ||
release: ${{secrets.RELEASE}} | ||
prepare: | | ||
pkg install -y curl | ||
run: | | ||
pwd | ||
ls -lah | ||
whoami | ||
env | ||
uname -a | ||
- name: Sleep | ||
run: sleep 5 | ||
- uses: neilpang/debugger-action@master | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,64 @@ | ||
# shell-dragonflybsd | ||
# shell-dragonflybsd | ||
Get a free shell for dragonflybsd | ||
|
||
If you need a dragonflybsd VM shell, you can use this repo. | ||
|
||
|
||
1. First fork this repo | ||
2. Click the "Actions' menu on your Repo, and then enable github actions on your fork. | ||
3. Then Select "All workflows" -> "shell" on the left. | ||
4. Then click the "Run workflow" dropdown menu on the right side. | ||
5. Then click the "Run workflow" button. | ||
|
||
|
||
Wait a few seconds, the github action will run in your repo. | ||
|
||
Click "Shell" -> "Start a dragonflybsd shell", to open the log window, you will see a dragonflybsd vm is booting there. | ||
|
||
Wait about 5-8 minutes, the dragonflybsd vm will be ready. | ||
|
||
And you will see the ssh address like below: | ||
|
||
``` | ||
Setting up tmate... | ||
Running tmate... | ||
________________________________________________________________________________ | ||
To connect to this session copy-n-paste the following into a terminal: | ||
ssh [email protected] | ||
After connecting you can run touch /tmp/keepalive to disable the 15m timeout | ||
``` | ||
|
||
Good. Use the address to connect: | ||
|
||
|
||
``` | ||
ssh [email protected] | ||
``` | ||
|
||
|
||
You will get a shell like: | ||
|
||
|
||
``` | ||
Mac-1606142911434:shell-dragonflybsd runner$ | ||
``` | ||
|
||
Then you can ssh to the dragonflybsd VM: | ||
|
||
``` | ||
Mac-1606142911434:shell-dragonflybsd runner$ ssh dragonflybsd | ||
``` | ||
|
||
|
||
# Under the hood | ||
|
||
Uses: https://github.com/vmactions/dragonflybsd-vm | ||
|
||
|