mirror of
https://github.com/thegeeklab/docker-tidy.git
synced 2024-11-16 09:40:40 +00:00
27 lines
374 B
Makefile
27 lines
374 B
Makefile
.PHONY: all clean tag test
|
|
|
|
PACKAGE_VERSION = $(shell python setup.py --version)
|
|
|
|
DOCKER_REPO ?= ${USER}
|
|
BUILD_TAG ?= ${PACKAGE_VERSION}
|
|
|
|
all: test
|
|
|
|
clean:
|
|
git clean -fdx -- debian
|
|
rm -f ./dist
|
|
find . -iname '*.pyc' -delete
|
|
|
|
tag:
|
|
git tag v${PACKAGE_VERSION}
|
|
|
|
test:
|
|
tox
|
|
|
|
tests: test
|
|
|
|
|
|
.PHONY: build
|
|
build:
|
|
docker build -t ${DOCKER_REPO}/docker-custodian:${BUILD_TAG} .
|