Fix travis CI problems
This commit is contained in:
parent
a8a3d2562e
commit
8376d0d182
@ -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 \
|
||||
|
@ -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"]
|
||||
|
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user