forked from concourse/docker-image-resource
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·26 lines (15 loc) · 716 Bytes
/
build
File metadata and controls
executable file
·26 lines (15 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -e -x
BUILT_RESOURCE=$PWD/built-resource
DOCKER_VERSION=$(cat docker/version | sed 's/^v//')
export GOPATH=$PWD/gopath
export PATH=$PWD/gopath/bin:$PATH
cd $(dirname $0)/../..
go install github.com/concourse/docker-image-resource/vendor/github.com/onsi/ginkgo/ginkgo
CGO_ENABLED=1 ginkgo -race -r -p
go build -o ./assets/check ./cmd/check/
go build -o ./assets/print-metadata ./cmd/print-metadata/
curl -sSL -O "https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz"
tar zxf "docker-${DOCKER_VERSION}.tgz"
go build -o ./ecr-login github.com/concourse/docker-image-resource/vendor/github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cmd
cp -a ./* ${BUILT_RESOURCE}/