Skip to content

Commit

Permalink
separate steps and skip the SSH config in act env
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuto-m committed Feb 10, 2025
1 parent 94a75fa commit 9775bbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/sunbeam-multi-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
ip -br a
ip r
resolvectl --no-pager
env
- name: Install prerequisites
run: |
sudo apt-get update
Expand All @@ -63,13 +62,12 @@ jobs:
sudo uvt-simplestreams-libvirt sync release=noble arch=amd64
sudo uvt-simplestreams-libvirt query
- name: Prepare SSH, virtual network bridge, and virtual machines
if: ${{ !env.ACT }}
run: |
# use `sudo` instead of `sg libvirt` for simplicity in testing
# SSH
if [ ! -f ~/.ssh/id_ed25519 ]; then
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
fi
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
cat <<EOF | tee -a ~/.ssh/config
Host sunbeam-machine-1
User ubuntu
Expand All @@ -94,7 +92,9 @@ jobs:
sudo virsh net-autostart sunbeam-virbr0
sudo virsh net-start sunbeam-virbr0
# VM
- name: Prepare virtual machines
run: |
# use `sudo` instead of `sg libvirt` for simplicity in testing
for i in {1..3}; do
sudo uvt-kvm create \
--machine-type q35 \
Expand Down

0 comments on commit 9775bbc

Please sign in to comment.