-
Notifications
You must be signed in to change notification settings - Fork 19
45 lines (41 loc) · 1.06 KB
/
shell.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: shell
on: [push, workflow_dispatch]
jobs:
runshell:
runs-on: ubuntu-22.04
name: Start a freebsd shell
steps:
- uses: vmactions/cf-tunnel@v0
id: tunnel
with:
protocol: http
port: 8000
- name: Set envs
run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
- name: Starting a freebsd VM, please wait. It may take 5 minutes
id: shell
uses: vmactions/freebsd-vm@main
with:
nat: |
"8000": "80"
envs: 'TestingDomain TEST_PREFERRED_CHAIN TEST_ACME_Server INPUT_*'
sync: sshfs
prepare: pkg install -y socat curl
run: |
pwd
ls -lah
whoami
env
freebsd-version
(ls -lah)
- name: step 1
run: ssh freebsd <<EOF
echo "this is step 1"
EOF
- name: step 2
run: ssh freebsd <<EOF
echo "this is step 2"
EOF
- name: Sleep
run: for i in $(seq 1 10) ; do echo $i; sleep 1; done
- uses: neilpang/debugger-action@master