You've already forked git-docker
							
							revert to alpine 3.12 due to dns issue
This commit is contained in:
		| @@ -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 | RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli | ||||||
|  |  | ||||||
| ADD posix/* /usr/local/bin/ | 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 | RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl | ||||||
|  |  | ||||||
| ADD posix/* /usr/local/bin/ | 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 | RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl | ||||||
|  |  | ||||||
| ADD posix/* /usr/local/bin/ | 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 | RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl | ||||||
|  |  | ||||||
| ADD posix/* /usr/local/bin/ | 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 | RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl | ||||||
|  |  | ||||||
| ADD posix/* /usr/local/bin/ | 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 | RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl | ||||||
|  |  | ||||||
| ADD posix/* /usr/local/bin/ | ADD posix/* /usr/local/bin/ | ||||||
|   | |||||||
							
								
								
									
										20
									
								
								posix/clone
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								posix/clone
									
									
									
									
									
								
							| @@ -4,11 +4,19 @@ if [[ ! -z "${DRONE_WORKSPACE}" ]]; then | |||||||
| 	cd ${DRONE_WORKSPACE} | 	cd ${DRONE_WORKSPACE} | ||||||
| fi | 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 | # if the netrc enviornment variables exist, write | ||||||
| # the netrc file. | # the netrc file. | ||||||
|  |  | ||||||
| if [[ ! -z "${DRONE_NETRC_MACHINE}" ]]; then | if [[ ! -z "${DRONE_NETRC_MACHINE}" ]]; then | ||||||
| 	cat <<EOF > /root/.netrc | 	cat <<EOF > ${HOME}/.netrc | ||||||
| machine ${DRONE_NETRC_MACHINE} | machine ${DRONE_NETRC_MACHINE} | ||||||
| login ${DRONE_NETRC_USERNAME} | login ${DRONE_NETRC_USERNAME} | ||||||
| password ${DRONE_NETRC_PASSWORD} | password ${DRONE_NETRC_PASSWORD} | ||||||
| @@ -20,12 +28,12 @@ fi | |||||||
| # known hosts file. | # known hosts file. | ||||||
|  |  | ||||||
| if [[ ! -z "${DRONE_SSH_KEY}" ]]; then | if [[ ! -z "${DRONE_SSH_KEY}" ]]; then | ||||||
| 	mkdir /root/.ssh | 	mkdir ${HOME}/.ssh | ||||||
| 	echo -n "$DRONE_SSH_KEY" > /root/.ssh/id_rsa | 	echo -n "$DRONE_SSH_KEY" > ${HOME}/.ssh/id_rsa | ||||||
| 	chmod 600 /root/.ssh/id_rsa | 	chmod 600 ${HOME}/.ssh/id_rsa | ||||||
|  |  | ||||||
| 	touch /root/.ssh/known_hosts | 	touch ${HOME}/.ssh/known_hosts | ||||||
| 	chmod 600 /root/.ssh/known_hosts | 	chmod 600 ${HOME}/.ssh/known_hosts | ||||||
| 	ssh-keyscan -H ${DRONE_NETRC_MACHINE} > /etc/ssh/ssh_known_hosts 2> /dev/null | 	ssh-keyscan -H ${DRONE_NETRC_MACHINE} > /etc/ssh/ssh_known_hosts 2> /dev/null | ||||||
| fi | fi | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Brad Rydzewski
					Brad Rydzewski