Skip to content

Commit d567f58

Browse files
authored
Merge pull request #347 from concourse/image-args
use image args for FROM, use golang-builder
2 parents 7fe78ac + 9c94d3a commit d567f58

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

assets/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ load_pubkey() {
1414
eval $(ssh-agent) >/dev/null 2>&1
1515
trap "kill $SSH_AGENT_PID" EXIT
1616

17-
SSH_ASKPASS=$(dirname $0)/askpass.sh DISPLAY= ssh-add $private_key_path >/dev/null
17+
SSH_ASKPASS_REQUIRE=force SSH_ASKPASS=$(dirname $0)/askpass.sh DISPLAY= ssh-add $private_key_path >/dev/null
1818

1919
mkdir -p ~/.ssh
2020
cat > ~/.ssh/config <<EOF

dockerfiles/alpine/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# temporaily use alpine:3 since alpine:edge uses musl-1.2.1 which breaks
2-
# docker for mac due to (lack of) ipv6 dns resolution
3-
FROM alpine:3 AS resource
1+
ARG base_image=alpine:latest
2+
3+
FROM ${base_image} AS resource
44

55
RUN apk --no-cache add \
66
bash \

dockerfiles/ubuntu/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ubuntu:bionic AS resource
1+
ARG base_image
2+
3+
FROM ${base_image} AS resource
24

35
RUN apt-get update \
46
&& apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)