Makefile,Dockerfile: add multi-arch images

This commit changes the build-system for Kilo to create container images
for multiple architectures. This will enable running Kilo on Arm
devices, e.g. Raspberry Pis. This is accomplished using Docker
manifests.
This commit is contained in:
Lucas Servén Marín
2019-05-16 19:07:58 +02:00
parent 81d6077fc2
commit adb09ce620
5 changed files with 111 additions and 39 deletions

View File

@@ -1,5 +1,7 @@
sudo: required
dist: xenial
language: go
services:
@@ -9,7 +11,7 @@ go:
- 1.12.1
env:
- GO111MODULE=on
- GO111MODULE=on DOCKER_CLI_EXPERIMENTAL=enabled
install: true
@@ -18,10 +20,12 @@ before_install:
script:
- make
- make vendor
- make unit
- make lint
- make container
after_success:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- make push && make push-latest
- docker run --rm --privileged multiarch/qemu-user-static:register
- make manifest && make manifest-latest