in the Dockerfile. Updated README.md to include developer and testing instructions. Removed old files and scripts for building and testing. Signed-off-by: Joris Melchior <jmelchior@pivotal.io>
24 lines
883 B
Docker
24 lines
883 B
Docker
FROM golang:alpine as builder
|
|
COPY . /go/src/github.com/concourse/github-release-resource
|
|
ENV CGO_ENABLED 0
|
|
ENV GOPATH /go/src/github.com/concourse/github-release-resource/Godeps/_workspace:${GOPATH}
|
|
ENV PATH /go/src/github.com/concourse/github-release-resource/Godeps/_workspace/bin:${PATH}
|
|
RUN go build -o /assets/out github.com/concourse/github-release-resource/cmd/out
|
|
RUN go build -o /assets/in github.com/concourse/github-release-resource/cmd/in
|
|
RUN go build -o /assets/check github.com/concourse/github-release-resource/cmd/check
|
|
RUN set -e; for pkg in $(go list ./...); do \
|
|
go test -o "/tests/$(basename $pkg).test" -c $pkg; \
|
|
done
|
|
|
|
FROM alpine:edge AS resource
|
|
RUN apk add --update bash tzdata
|
|
COPY --from=builder /assets /opt/resource
|
|
|
|
FROM resource AS tests
|
|
COPY --from=builder /tests /tests
|
|
RUN set -e; for test in /tests/*.test; do \
|
|
$test; \
|
|
done
|
|
|
|
FROM resource
|