Update build scripts
This commit is contained in:
parent
deec897718
commit
566e2131d1
5
build.sh
5
build.sh
|
@ -1,9 +1,12 @@
|
|||
#!/bin/sh -eux
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
glide install -v
|
||||
export CGO_ENABLED=0
|
||||
export GOARCH=amd64
|
||||
mkdir -p bin
|
||||
rm bin/*
|
||||
|
||||
GOOS=darwin go build -o bin/packer-builder-vsphere.macos
|
||||
GOOS=linux go build -o bin/packer-builder-vsphere.linux
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
build:
|
||||
build: docker/
|
||||
image: jetbrainsinfra/golang:1.8.3
|
||||
volumes:
|
||||
- .:/go/src/github.com/jetbrains-infra/packer-builder-vsphere
|
||||
working_dir: /go/src/github.com/jetbrains-infra/packer-builder-vsphere
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
FROM golang:1.8.3
|
||||
ARG GLIDE_VERSION=0.12.3
|
||||
|
||||
RUN wget -nv https://github.com/Masterminds/glide/releases/download/v$GLIDE_VERSION/glide-v$GLIDE_VERSION-linux-amd64.tar.gz -O- | \
|
||||
tar xzf - -C /usr/local/bin/ --strip-components=1 linux-amd64/glide
|
Loading…
Reference in New Issue