Makefile: bump golang toolchain for M1 support
This commit bumps the Golang toolchain version used to build Kilo to go 1.16 to support builing kgctl for the arm64 M1 macs. Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
This commit is contained in:
7
Makefile
7
Makefile
@@ -3,7 +3,6 @@ export GO111MODULE=on
|
||||
|
||||
OS ?= $(shell go env GOOS)
|
||||
ARCH ?= $(shell go env GOARCH)
|
||||
ALL_OS := linux darwin windows
|
||||
ALL_ARCH := amd64 arm arm64
|
||||
DOCKER_ARCH := "amd64" "arm v7" "arm64 v8"
|
||||
ifeq ($(OS),linux)
|
||||
@@ -11,7 +10,7 @@ ifeq ($(OS),linux)
|
||||
else
|
||||
BINS := bin/$(OS)/$(ARCH)/kgctl
|
||||
endif
|
||||
RELEASE_BINS := $(addprefix bin/release/kgctl-, $(addprefix linux-, $(ALL_ARCH)) darwin-amd64 windows-amd64)
|
||||
RELEASE_BINS := $(addprefix bin/release/kgctl-, $(addprefix linux-, $(ALL_ARCH)) darwin-amd64 darwin-arm64 windows-amd64)
|
||||
PROJECT := kilo
|
||||
PKG := github.com/squat/$(PROJECT)
|
||||
REGISTRY ?= index.docker.io
|
||||
@@ -44,8 +43,8 @@ KIND_BINARY := $(shell pwd)/bin/kind
|
||||
KUBECTL_BINARY := $(shell pwd)/bin/kubectl
|
||||
BASH_UNIT := $(shell pwd)/bin/bash_unit
|
||||
|
||||
BUILD_IMAGE ?= golang:1.15.7-alpine
|
||||
BASE_IMAGE ?= alpine:3.12
|
||||
BUILD_IMAGE ?= golang:1.16.5-alpine
|
||||
BASE_IMAGE ?= alpine:3.13
|
||||
|
||||
build: $(BINS)
|
||||
|
||||
|
Reference in New Issue
Block a user