Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 681 Bytes

README.md

File metadata and controls

31 lines (28 loc) · 681 Bytes

ci

Contains common CI/CD configuration for Athenian projects.

Usage

Environment variables that should be set

# google-related credentials
GOOGLE_DOCKER_IMAGE
GOOGLE_CREDENTIALS
GOOGLE_PROJECT
GOOGLE_PUBSUB_TOPIC
# k8s-related entity names
K8S_DEPLOYMENT
K8S_NAMESPACE
# credentials required in CI
CODECOV_TOKEN

Including in your Makefile

PROJECT = your-project
COMMANDS ?= # or cmd/your-command

CI_REPOSITORY ?= https://github.com/athenianco/ci
CI_BRANCH ?= master
CI_PATH ?= .ci
MAKEFILE := $(CI_PATH)/Makefile.main
$(MAKEFILE):
	git clone --quiet --depth 1 -b $(CI_BRANCH) $(CI_REPOSITORY) $(CI_PATH);
-include $(MAKEFILE)