chore(deps): update actions/checkout action to v4.1.6 #292
Workflow file for this run
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: 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 |