Fix travis CI problems
This commit is contained in:
parent
a8a3d2562e
commit
8376d0d182
@ -1,7 +1,9 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
language: bash
|
language: go
|
||||||
|
go:
|
||||||
|
- "1.10"
|
||||||
env:
|
env:
|
||||||
- PROGRAM=frontend IMAGE_NAME=bird-lg-go IMAGE_ARCH=i386
|
- PROGRAM=frontend IMAGE_NAME=bird-lg-go IMAGE_ARCH=i386
|
||||||
- PROGRAM=frontend IMAGE_NAME=bird-lg-go IMAGE_ARCH=amd64
|
- 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
|
if [ "$IMAGE_ARCH" == "arm64v8" ]; then IMAGE_ARCH_GO=arm64; fi
|
||||||
|
|
||||||
# Build Go binary
|
# 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
|
# Build image
|
||||||
docker build \
|
docker build \
|
||||||
|
@ -2,5 +2,5 @@ ARG THIS_ARCH_ALT=amd64
|
|||||||
FROM multiarch/alpine:${THIS_ARCH_ALT}-edge
|
FROM multiarch/alpine:${THIS_ARCH_ALT}-edge
|
||||||
|
|
||||||
LABEL Lan Tian "lantian@lantian.pub"
|
LABEL Lan Tian "lantian@lantian.pub"
|
||||||
COPY frontend /
|
COPY build/frontend /
|
||||||
ENTRYPOINT ["/frontend"]
|
ENTRYPOINT ["/frontend"]
|
||||||
|
@ -2,5 +2,5 @@ ARG THIS_ARCH_ALT=amd64
|
|||||||
FROM multiarch/alpine:${THIS_ARCH_ALT}-edge
|
FROM multiarch/alpine:${THIS_ARCH_ALT}-edge
|
||||||
|
|
||||||
LABEL Lan Tian "lantian@lantian.pub"
|
LABEL Lan Tian "lantian@lantian.pub"
|
||||||
COPY proxy /
|
COPY build/proxy /
|
||||||
ENTRYPOINT ["/proxy"]
|
ENTRYPOINT ["/proxy"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user