diff --git a/.ssh/config b/.ssh/config index 081e280..e836f98 100644 --- a/.ssh/config +++ b/.ssh/config @@ -1 +1 @@ -IdentityFile ~/.ssh/codefresh \ No newline at end of file +IdentityFile ~/.ssh/codefresh diff --git a/Dockerfile b/Dockerfile index 5390fb3..db560ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,13 @@ RUN apk add --no-cache --virtual deps openssl && \ git lfs install && \ apk del deps -#add ssh record on which ssh key to use +# add ssh record on which ssh key to use COPY ./.ssh/ /root/.ssh/ +# add fingerprint for major git providers +RUN ssh-keyscan github.com >> /root/.ssh/known_hosts +RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts + COPY ./start.sh /run/start.sh RUN chmod +x /run/start.sh diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index c019fe4..c65044e 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -9,9 +9,13 @@ RUN apk add --no-cache --virtual deps openssl && \ git lfs install && \ apk del deps -#add ssh record on which ssh key to use +# add ssh record on which ssh key to use COPY ./.ssh/ /root/.ssh/ +# add fingerprint for major git providers +RUN ssh-keyscan github.com >> /root/.ssh/known_hosts +RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts + COPY ./start.sh /run/start.sh RUN chmod +x /run/start.sh diff --git a/service.yaml b/service.yaml index 411d6f4..fd14452 100644 --- a/service.yaml +++ b/service.yaml @@ -1 +1 @@ -version: 10.0.3 +version: 10.0.4