File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM drydock-prod.workiva.net/workiva/smithy-runner-golang:121185 as build
2
+
3
+ # Build Environment Vars
4
+ ARG BUILD_ID
5
+ ARG BUILD_NUMBER
6
+ ARG BUILD_URL
7
+ ARG GIT_COMMIT
8
+ ARG GIT_BRANCH
9
+ ARG GIT_TAG
10
+ ARG GIT_COMMIT_RANGE
11
+ ARG GIT_HEAD_URL
12
+ ARG GIT_MERGE_HEAD
13
+ ARG GIT_MERGE_BRANCH
14
+ ARG GIT_SSH_KEY
15
+ ARG KNOWN_HOSTS_CONTENT
16
+ WORKDIR /go/src/github.com/Workiva/go-datastructures/
17
+ ADD . /go/src/github.com/Workiva/go-datastructures/
18
+
19
+ RUN mkdir /root/.ssh && \
20
+ echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts" && \
21
+ chmod 700 /root/.ssh/ && \
22
+ umask 0077 && echo "$GIT_SSH_KEY" >/root/.ssh/id_rsa && \
23
+ eval "$(ssh-agent -s)" && ssh-add /root/.ssh/id_rsa
24
+
25
+ ARG GOPATH=/go/
26
+ ENV PATH $GOPATH/bin:$PATH
27
+ RUN git config --global url.git@github.com:.insteadOf https://github.com
28
+ RUN if [ -d /usr/local/go_appengine ]; then ENV PATH $PATH:/usr/local/go_appengine; fi
29
+ RUN echo "Starting the script section" && \
30
+ glide install && \
31
+ echo "script section completed"
32
+ RUN go get -d ./... && \
33
+ go build
34
+ ARG BUILD_ARTIFACTS_DEPENDENCIES=/go/src/github.com/Workiva/go-datastructures/glide.lock
35
+ FROM scratch
You can’t perform that action at this time.
0 commit comments