hydra-werther/Makefile
Philippe Caseiro 77bb3ba59b
All checks were successful
Cadoles/hydra-werther/pipeline/head This commit looks good
Cadoles/hydra-werther/pipeline/pr-develop This commit looks good
feat(makefile): updating Makefile with cadoles methods.
Adding Docker image release and build rules
Updating nfpm packaging methods.
2023-09-05 10:17:45 +02:00

18 lines
563 B
Makefile

##################################################
# Makefile for Cadoles Kubernetes Skeletor project
##################################################
COMMIT_ID ?= $(shell git rev-parse --short --verify HEAD)
CURRENT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD | tr -c '[:alnum:]\n\r' '_'| tr '[:upper:]' '[:lower:]')
IMAGE_REPO ?= reg.cadoles.com/cadoles
IMAGE_VERSION ?= 1.2.2-$(CURRENT_BRANCH)
IMAGES_DIR := .
PACKAGE_VERSION ?= $(shell git describe --always | rev | cut -d '/' -f 1 | rev)
NFPM_PACKAGER ?= deb
include main.mk
include packages.mk