From 694a442d451858f21c8eabab587c520320d6f21d Mon Sep 17 00:00:00 2001 From: Andrew Schleifer Date: Wed, 6 Apr 2022 14:06:08 +0000 Subject: [PATCH] DEV: release Makefile target and documentation --- Makefile | 5 +++++ README.md | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Makefile b/Makefile index fcf4e51..5fe0de1 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,8 @@ push: build .PHONY: build build: docker build --pull -t ${IMAGE}:${TAG} . + +.PHONY: release +release: + docker tag ${IMAGE}:${TAG} ${IMAGE}:latest + docker push ${IMAGE}:latest diff --git a/README.md b/README.md index a0d1914..9105e70 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,17 @@ docker run discourse/auth-proxy ``` Running will display configuration instructions + +You may build an image using + +``` +make build +``` + +After building, you may publish it as a new release -- i.e. `latest` tag -- using + +``` +make release TAG=20220406.135620 +``` + +(Replace with the actual built tag.)