Fix travis CI problems

This commit is contained in:
Lan Tian 2019-01-08 14:42:36 +08:00
parent a8a3d2562e
commit 8376d0d182
No known key found for this signature in database
GPG Key ID: 27F31700E751EC22
3 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,9 @@
sudo: required
services:
- docker
language: bash
language: go
go:
- "1.10"
env:
- PROGRAM=frontend IMAGE_NAME=bird-lg-go IMAGE_ARCH=i386
- PROGRAM=frontend IMAGE_NAME=bird-lg-go IMAGE_ARCH=amd64
@ -31,7 +33,8 @@ script:
if [ "$IMAGE_ARCH" == "arm64v8" ]; then IMAGE_ARCH_GO=arm64; fi
# Build Go binary
GOOS=linux GOARCH=$IMAGE_ARCH_GO go build -ldflags="-s -w" -o $PROGRAM $PROGRAM/*.go
mkdir build
GOOS=linux GOARCH=$IMAGE_ARCH_GO go build -ldflags="-s -w" -o build/$PROGRAM $PROGRAM/*.go
# Build image
docker build \

View File

@ -2,5 +2,5 @@ ARG THIS_ARCH_ALT=amd64
FROM multiarch/alpine:${THIS_ARCH_ALT}-edge
LABEL Lan Tian "lantian@lantian.pub"
COPY frontend /
COPY build/frontend /
ENTRYPOINT ["/frontend"]

View File

@ -2,5 +2,5 @@ ARG THIS_ARCH_ALT=amd64
FROM multiarch/alpine:${THIS_ARCH_ALT}-edge
LABEL Lan Tian "lantian@lantian.pub"
COPY proxy /
COPY build/proxy /
ENTRYPOINT ["/proxy"]