arm build

feature/policy_from_annotations 0.12.0
Karolis Rusenas 2018-10-14 14:01:00 +01:00
parent f7d89f83a4
commit fedaf23b78
1 changed files with 11 additions and 3 deletions

View File

@ -25,14 +25,22 @@ build-binaries:
@echo "++ building aarch64 binary"
cd cmd/keel && env GOARCH=arm64 GOOS=linux go build -ldflags="-s -w" -o release/keel-linux-aarch64
armhf:
armhf-latest:
docker build -t keelhq/keel-arm:latest -f Dockerfile.armhf .
docker push keelhq/keel-arm:latest
aarch64:
aarch64-latest:
docker build -t keelhq/keel-aarch64:latest -f Dockerfile.aarch64 .
docker push keelhq/keel-aarch64:latest
armhf:
docker build -t keelhq/keel-arm:$(VERSION) -f Dockerfile.armhf .
docker push keelhq/keel-arm:$(VERSION)
aarch64:
docker build -t keelhq/keel-aarch64:$(VERSION) -f Dockerfile.aarch64 .
docker push keelhq/keel-aarch64:$(VERSION)
arm: build-binaries compress fetch-certs armhf aarch64
test:
@ -44,7 +52,7 @@ build:
install:
@echo "++ Installing keel"
CGO_ENABLED=0 GOOS=linux go install -ldflags "$(LDFLAGS) -w -s" github.com/keel-hq/keel/cmd/keel
CGO_ENABLED=0 GOOS=linux go install -ldflags "$(LDFLAGS)" github.com/keel-hq/keel/cmd/keel
image:
docker build -t keelhq/keel:alpha -f Dockerfile .