Add ssh-keyscan. Start ssh-agent for cargo.

This commit is contained in:
James Pace 2024-01-04 18:59:48 -05:00
parent cda58f1605
commit 600c682fbb
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,9 @@
FROM docker.io/library/fedora:latest
RUN sudo dnf update -y && \
sudo dnf install -y nodejs yarnpkg openssl-devel curl just gcc
sudo dnf install -y nodejs yarnpkg \
openssl-devel curl \
just gcc openssh-clients
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN /bin/bash -c "source $HOME/.cargo/env && rustup update"
RUN /bin/bash -c "source $HOME/.cargo/env && rustup toolchain install nightly"

View File

@ -15,6 +15,7 @@ spec:
cp -r $(workspaces.ssh-directory.path) ~/.ssh
chmod 700 ~/.ssh
chmod -R 400 ~/.ssh/*
eval $(ssh-agent -s)
ssh-keyscan -H -p 2222 git.jpace121.net >> ~/.ssh/known_hosts
# Use just to run the ci steps.
source ~/.cargo/env