Commit 272ce387 authored by Alexander Wellbrock's avatar Alexander Wellbrock

Add CI_SSH_PASS environment mapping

This will add a script and setup ssh to use it to retrieve the ssh
passphrase from the given environment variable.
parent b87c46c4
Pipeline #905 failed with stage
in 3 minutes and 17 seconds
if [ "$CI_SSH_PASS" != "" ]; then
echo "$CI_SSH_PASS"
exit 0
......@@ -13,3 +13,10 @@ RUN true \
&& apt-get install -y ansible \
&& apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \
&& true
COPY .ssh_askpass /home/gitlab-runner/.ssh_askpass
RUN chown gitlab-runner:gitlab-runner /home/gitlab-runner/.ssh_askpass \
&& chmod 0755 /home/gitlab-runner/.ssh_askpass
ENV SSH_ASKPASS=/home/gitlab-runner/.ssh_askpass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment