
This PS adds the skeleton for a set of zuul checks and gates for airshipctl and removes the travis config. This PS also removes some dead code from the util package. This change is required to get unit tests passing. Change-Id: Ifb1be49cb1bb82c62a0085b6da9b8ff1b261a95b
21 lines
539 B
Docker
21 lines
539 B
Docker
ARG GO_IMAGE=docker.io/golang:1.12.6-stretch
|
|
ARG RELEASE_IMAGE=scratch
|
|
FROM ${GO_IMAGE} as builder
|
|
|
|
SHELL [ "/bin/bash", "-cex" ]
|
|
ADD . /usr/src/airshipctl
|
|
WORKDIR /usr/src/airshipctl
|
|
ENV GO111MODULE=on
|
|
|
|
RUN make get-modules
|
|
|
|
ARG MAKE_TARGET=build
|
|
RUN make ${MAKE_TARGET} && \
|
|
if [[ "${MAKE_TARGET}" == 'lint' ]]; then \
|
|
mkdir -p /usr/src/airshipctl/bin; \
|
|
touch /usr/src/airshipctl/bin/airshipctl; \
|
|
fi
|
|
|
|
FROM ${RELEASE_IMAGE} as release
|
|
COPY --from=builder /usr/src/airshipctl/bin/airshipctl /usr/local/bin/airshipctl
|