github.com/kubevela/workflow@v0.6.0/makefiles/const.mk (about) 1 # Image URL to use all building/pushing image targets 2 IMG ?= oamdev/vela-workflow 3 IMG_TAG ?= latest 4 OS ?= linux 5 ARCH ?= amd64 6 # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. 7 ENVTEST_K8S_VERSION = 1.24.1 8 9 # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) 10 ifeq (,$(shell go env GOBIN)) 11 GOBIN=$(shell go env GOPATH)/bin 12 else 13 GOBIN=$(shell go env GOBIN) 14 endif 15 16 # Setting SHELL to bash allows bash commands to be executed by recipes. 17 # This is a requirement for 'setup-envtest.sh' in the test target. 18 # Options are set to exit when a recipe line exits non-zero or a piped command fails. 19 SHELL = /usr/bin/env bash -o pipefail 20 .SHELLFLAGS = -ec 21 22 GOBUILD_ENV = GO111MODULE=on CGO_ENABLED=0 23 GOX = go run github.com/mitchellh/gox 24 TARGETS := darwin/amd64 linux/amd64 windows/amd64 25 DIST_DIRS := find * -type d -exec 26 27 TIME_LONG = `date +%Y-%m-%d' '%H:%M:%S` 28 TIME_SHORT = `date +%H:%M:%S` 29 TIME = $(TIME_SHORT) 30 31 BLUE := $(shell printf "\033[34m") 32 YELLOW := $(shell printf "\033[33m") 33 RED := $(shell printf "\033[31m") 34 GREEN := $(shell printf "\033[32m") 35 CNone := $(shell printf "\033[0m") 36 37 INFO = echo ${TIME} ${BLUE}[ .. ]${CNone} 38 WARN = echo ${TIME} ${YELLOW}[WARN]${CNone} 39 ERR = echo ${TIME} ${RED}[FAIL]${CNone} 40 OK = echo ${TIME} ${GREEN}[ OK ]${CNone} 41 FAIL = (echo ${TIME} ${RED}[FAIL]${CNone} && false) 42 43 44 45 # Vela version 46 VELA_VERSION ?= master 47 # Repo info 48 GIT_COMMIT ?= git-$(shell git rev-parse --short HEAD) 49 GIT_COMMIT_LONG ?= $(shell git rev-parse HEAD) 50 VELA_VERSION_KEY := github.com/kubevela/workflow/version.VelaVersion 51 VELA_GITVERSION_KEY := github.com/kubevela/workflow/version.GitRevision 52 LDFLAGS ?= "-s -w -X $(VELA_VERSION_KEY)=$(VELA_VERSION) -X $(VELA_GITVERSION_KEY)=$(GIT_COMMIT)" 53 54 55 56 # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) 57 ifeq (,$(shell go env GOBIN)) 58 GOBIN=$(shell go env GOPATH)/bin 59 else 60 GOBIN=$(shell go env GOBIN) 61 endif 62 63 # Image URL to use all building/pushing image targets 64 VELA_CORE_IMAGE ?= vela-core:latest 65 VELA_CLI_IMAGE ?= oamdev/vela-cli:latest 66 VELA_CORE_TEST_IMAGE ?= vela-core-test:$(GIT_COMMIT) 67 VELA_APISERVER_IMAGE ?= apiserver:latest 68 VELA_RUNTIME_ROLLOUT_IMAGE ?= vela-runtime-rollout:latest 69 VELA_RUNTIME_ROLLOUT_TEST_IMAGE ?= vela-runtime-rollout-test:$(GIT_COMMIT) 70 RUNTIME_CLUSTER_CONFIG ?= /tmp/worker.client.kubeconfig 71 RUNTIME_CLUSTER_NAME ?= worker