Update shell.yml #33
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
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 | |