I tried to port some pipelines to go sdk; go sdk permits me to develop pipeline more rapidly.
I need to use --mount=type=ssh dockerfile directive, i found a workaround related to docker build args.
ARG SSH_KEY
# Adding ssh private key used to download private repos only and only if present
# If SSH KEY is not present, this dockerfile tries to use --mount=type=ssh
RUN if [ -n ${SSH_KEY+x} ]; then (mkdir -p /root/.ssh \
&& echo " IdentityFile ~/.ssh/id_rsa" >> /etc/ssh/ssh_config \
&& echo "$SSH_KEY" > /root/.ssh/id_rsa \
&& chmod 400 /root/.ssh/id_rsa); fi
It seems go-sdk does not support build-arg options or i am missing something ?