Skip to content

chore(deps): update actions/checkout action to v4.1.6 #292

chore(deps): update actions/checkout action to v4.1.6

chore(deps): update actions/checkout action to v4.1.6 #292

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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
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