ci: add team ssh keys in before_script

Add the keys in before_script to make also rpbuild runners accessible as
the deploy.sh script is not being ran there.
This commit is contained in:
Jakub Rusz 2022-04-01 16:02:28 +02:00 committed by Alexander Todorov
parent 0688d2180b
commit 9c3e9ff616
2 changed files with 1 additions and 3 deletions

View file

@ -9,6 +9,7 @@ stages:
.base:
before_script:
- schutzbot/ci_details.sh > ci-details-before-run
- cat schutzbot/team_ssh_keys.txt | tee -a ~/.ssh/authorized_keys > /dev/null
after_script:
- schutzbot/ci_details.sh > ci-details-after-run
- schutzbot/update_github_status.sh update

View file

@ -90,9 +90,6 @@ fi
greenprint "Enabling fastestmirror to speed up dnf 🏎️"
echo -e "fastestmirror=1" | sudo tee -a /etc/dnf/dnf.conf
greenprint "Adding osbuild team ssh keys"
cat schutzbot/team_ssh_keys.txt | tee -a ~/.ssh/authorized_keys > /dev/null
# TODO: include this in the jenkins runner (and split test/target machines out)
sudo dnf -y install jq