Skip to content

chore(deps): update actions/checkout action to v4.1.4 (#526) #2

chore(deps): update actions/checkout action to v4.1.4 (#526)

chore(deps): update actions/checkout action to v4.1.4 (#526) #2

name: remote_build_server
on:
push:
paths:
- tools/create_remote_build_server/**
- .github/workflows/remote_build_server.yml
permissions: read-all
jobs:
remote_build_server-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
submodules: true
- name: Run tests
run: |
sudo -s -- << \EOF
set -euxo pipefail
apt update &> /dev/null
apt install -y -qq ansible openssh-server python3-jmespath python3-apt sudo > /dev/null
systemctl start ssh
# Create ssh key and add it to authorized keys
install -m 0700 -d $HOME/.ssh && ssh-keygen -t ed25519 -f $HOME/.ssh/id_ed25519 -q -N ""
cp $HOME/.ssh/id_ed25519.pub $HOME/.ssh/authorized_keys
chmod 0600 $HOME/.ssh/authorized_keys
# Run Ansible
export REMOTE_USER="root"
export REMOTE_IP="localhost"
export ANSIBLE_HOST_KEY_CHECKING=False
export ANSIBLE_SKIP_TAGS="actions-runner_registration,actions-runner_installation"
cd tools/create_remote_build_server
ansible-galaxy collection install -v -r requirements.yml
./build_remote_ssh_ubuntu.sh
EOF