ci: switch to github actions build
This commit is contained in:
parent
fca20d2d63
commit
6ff9fcc2c0
22
.github/workflows/e2e.yml
vendored
22
.github/workflows/e2e.yml
vendored
@ -39,6 +39,11 @@ jobs:
|
|||||||
]
|
]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build
|
||||||
|
|
||||||
- uses: digitalocean/action-doctl@v2
|
- uses: digitalocean/action-doctl@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
|
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
|
||||||
@ -73,10 +78,15 @@ jobs:
|
|||||||
sleep 1s
|
sleep 1s
|
||||||
done
|
done
|
||||||
|
|
||||||
ssh root@$IP "curl -L https://nixos.org/nix/install | sh -s -- --daemon"
|
ssh root@$IP "systemctl disable apt-daily.timer apt-daily-upgrade.timer"
|
||||||
ssh root@$IP "echo 'experimental-features = nix-command flakes' >> /etc/nix/nix.conf"
|
ssh root@$IP "systemctl stop apt-daily.service apt-daily-upgrade.service"
|
||||||
|
|
||||||
|
ssh root@$IP "apt-get install -y podman qemu-system-x86"
|
||||||
|
|
||||||
ssh root@$IP "useradd --shell /bin/bash user && mkdir -p /home/user/.ssh && cp /root/.ssh/authorized_keys /home/user/.ssh/ && chown -R user:user /home/user"
|
ssh root@$IP "useradd --shell /bin/bash user && mkdir -p /home/user/.ssh && cp /root/.ssh/authorized_keys /home/user/.ssh/ && chown -R user:user /home/user"
|
||||||
|
|
||||||
|
scp ./out-of-tree root@$IP:/usr/local/bin/
|
||||||
|
|
||||||
echo 'name = "out-of-tree script"' >> .out-of-tree.toml
|
echo 'name = "out-of-tree script"' >> .out-of-tree.toml
|
||||||
echo 'type = "script"' >> .out-of-tree.toml
|
echo 'type = "script"' >> .out-of-tree.toml
|
||||||
echo 'script = "script.sh"' >> .out-of-tree.toml
|
echo 'script = "script.sh"' >> .out-of-tree.toml
|
||||||
@ -88,11 +98,9 @@ jobs:
|
|||||||
|
|
||||||
scp .out-of-tree.toml script.sh user@$IP:
|
scp .out-of-tree.toml script.sh user@$IP:
|
||||||
|
|
||||||
ssh user@$IP "mkdir -p ~/.config/containers && echo 'unqualified-search-registries = ["docker.io"]' > ~/.config/containers/registries.conf"
|
ssh user@$IP "out-of-tree --log-level=debug kernel list-remote --distro=${{ matrix.os.distro }} --ver=${{ matrix.os.release }}"
|
||||||
|
ssh user@$IP "out-of-tree --log-level=debug kernel autogen --max=1 --shuffle"
|
||||||
ssh user@$IP "source /etc/profile.d/nix.sh; nix run github:out-of-tree/out-of-tree/$GITHUB_SHA -- --log-level=debug kernel list-remote --distro=${{ matrix.os.distro }} --ver=${{ matrix.os.release }}"
|
ssh user@$IP "out-of-tree --log-level=debug pew --qemu-timeout=10m"
|
||||||
ssh user@$IP "source /etc/profile.d/nix.sh; nix run github:out-of-tree/out-of-tree/$GITHUB_SHA -- --log-level=debug kernel autogen --max=1 --shuffle"
|
|
||||||
ssh user@$IP "source /etc/profile.d/nix.sh; nix run github:out-of-tree/out-of-tree/$GITHUB_SHA -- --log-level=debug pew --qemu-timeout=10m"
|
|
||||||
|
|
||||||
scp -r user@$IP:.out-of-tree/logs .
|
scp -r user@$IP:.out-of-tree/logs .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user