Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Aug 3, 2022
1 parent 0c78b91 commit 3eb56d7
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/shell.yml
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

65 changes: 64 additions & 1 deletion README.md
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


0 comments on commit 3eb56d7

Please sign in to comment.