drone-kaniko/scripts/build.sh
surtur 73e95f29d3
feat: build {amd64,pure docker} only
* rm arm/arm64/gcr/ecr related build instructions in build.sh
  and .drone.ml, only build for amd64
* change autotag to manually specified tags (2 static, one dynamic)
* change the branch referenced in .drone.yml as we're using dev by
  default
* module path is now git.dotya.ml/wanderer/drone-kaniko/*
2021-05-02 01:15:12 +02:00

17 lines
372 B
Bash
Executable File

#!/bin/sh
# force go modules
export GOPATH=""
# disable cgo
export CGO_ENABLED=0
set -e
set -x
# linux
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/kaniko-gcr ./cmd/kaniko-gcr
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/kaniko-ecr ./cmd/kaniko-ecr
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/kaniko-docker ./cmd/kaniko-docker