You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# manually run 'rclone config' to setup the environment for each remote.
@@ -56,7 +62,12 @@ RUN curl https://rclone.org/install.sh | bash
56
62
RUN curl -sfL https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz | tar -zxvf - -C /usr/local/bin/
57
63
58
64
# install Github CLI tool gh
59
-
RUN curl -sfL https://github.com/cli/cli/releases/download/v2.60.0/gh_2.60.0_linux_amd64.tar.gz | tar -zxvf - gh_2.60.0_linux_amd64/bin/gh --strip-components=1
65
+
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
66
+
curl -sfL https://github.com/cli/cli/releases/download/v2.60.0/gh_2.60.0_linux_amd64.tar.gz | tar -zxvf - gh_2.60.0_linux_amd64/bin/gh --strip-components=1 \
67
+
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
68
+
curl -sfL https://github.com/cli/cli/releases/download/v2.60.0/gh_2.60.0_linux_arm64.tar.gz | tar -zxvf - gh_2.60.0_linux_arm64/bin/gh --strip-components=1 \
69
+
fi
70
+
60
71
61
72
# Set the default shell on openshift to use bash rather than sh
62
73
RUN /bin/sed -i 's/SHELL=\/bin\/sh/SHELL=\/bin\/bash/g' /etc/default/useradd
0 commit comments