revert to alpine 3.12 due to dns issue
This commit is contained in:
parent
e2f563e07f
commit
16f4dd8829
@ -1,4 +1,4 @@
|
||||
FROM alpine:3.13
|
||||
FROM alpine:3.12
|
||||
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli
|
||||
|
||||
ADD posix/* /usr/local/bin/
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM arm32v6/alpine:3.13
|
||||
FROM arm32v6/alpine:3.12
|
||||
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl
|
||||
|
||||
ADD posix/* /usr/local/bin/
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM arm32v6/alpine:3.13
|
||||
FROM arm32v6/alpine:3.12
|
||||
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl
|
||||
|
||||
ADD posix/* /usr/local/bin/
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM arm64v8/alpine:3.13
|
||||
FROM arm64v8/alpine:3.12
|
||||
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl
|
||||
|
||||
ADD posix/* /usr/local/bin/
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM arm32v6/alpine:3.13
|
||||
FROM arm32v6/alpine:3.12
|
||||
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl
|
||||
|
||||
ADD posix/* /usr/local/bin/
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM arm64v8/alpine:3.13
|
||||
FROM arm64v8/alpine:3.12
|
||||
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl
|
||||
|
||||
ADD posix/* /usr/local/bin/
|
||||
|
20
posix/clone
20
posix/clone
@ -4,11 +4,19 @@ if [[ ! -z "${DRONE_WORKSPACE}" ]]; then
|
||||
cd ${DRONE_WORKSPACE}
|
||||
fi
|
||||
|
||||
# if the home directory is not set (which should
|
||||
# never be the case) we should set to /root
|
||||
|
||||
if [[ -z "${HOME}" ]]; then
|
||||
echo "HOME directory not set; default to /root"
|
||||
export HOME=/root
|
||||
fi
|
||||
|
||||
# if the netrc enviornment variables exist, write
|
||||
# the netrc file.
|
||||
|
||||
if [[ ! -z "${DRONE_NETRC_MACHINE}" ]]; then
|
||||
cat <<EOF > /root/.netrc
|
||||
cat <<EOF > ${HOME}/.netrc
|
||||
machine ${DRONE_NETRC_MACHINE}
|
||||
login ${DRONE_NETRC_USERNAME}
|
||||
password ${DRONE_NETRC_PASSWORD}
|
||||
@ -20,12 +28,12 @@ fi
|
||||
# known hosts file.
|
||||
|
||||
if [[ ! -z "${DRONE_SSH_KEY}" ]]; then
|
||||
mkdir /root/.ssh
|
||||
echo -n "$DRONE_SSH_KEY" > /root/.ssh/id_rsa
|
||||
chmod 600 /root/.ssh/id_rsa
|
||||
mkdir ${HOME}/.ssh
|
||||
echo -n "$DRONE_SSH_KEY" > ${HOME}/.ssh/id_rsa
|
||||
chmod 600 ${HOME}/.ssh/id_rsa
|
||||
|
||||
touch /root/.ssh/known_hosts
|
||||
chmod 600 /root/.ssh/known_hosts
|
||||
touch ${HOME}/.ssh/known_hosts
|
||||
chmod 600 ${HOME}/.ssh/known_hosts
|
||||
ssh-keyscan -H ${DRONE_NETRC_MACHINE} > /etc/ssh/ssh_known_hosts 2> /dev/null
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user