diff --git a/Makefile b/Makefile index 06d50a1..a567c88 100644 --- a/Makefile +++ b/Makefile @@ -20,3 +20,8 @@ _site: build serve: build # Run Docker container with listener for current dir and port mapping docker run --rm -p 0.0.0.0:4000:80 -it caution-co + +.PHONY: publish +publish: build + docker tag caution-co git.distrust.co/caution/website + docker push git.distrust.co/caution/website diff --git a/README.md b/README.md index 1699c8e..e6c8fe0 100644 --- a/README.md +++ b/README.md @@ -39,3 +39,17 @@ $ make _site ```shell $ make fullclean ``` + +### Releasing + +1. Build and publish the image + +```shell +make publish +``` + +2. Restart the `caution` deployment in the Kubernetes cluster + +```shell +kubectl -n website rollout restart deploy/website-caution +```