vault/Makefile

14 lines
326 B
Makefile
Raw Permalink Normal View History

2016-05-02 21:50:09 +00:00
VERSION=$(shell grep 'ENV VAULT_VERSION' Dockerfile | cut -d ' ' -f 3)
default: check tag
build:
docker build -t local/vault-testing .
check: build
docker run --rm local/vault-testing --version | grep -q "Vault v${VERSION}"
tag:
git tag | grep -q "${VERSION}" && git tag -d "${VERSION}" || true
git tag "${VERSION}"