Makefile: add publish target

This commit is contained in:
RyanSquared 2025-09-25 16:36:11 -04:00
parent f905e68a5f
commit 7eb3a7879b
Signed by untrusted user who does not match committer: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 19 additions and 0 deletions

View File

@ -20,3 +20,8 @@ _site: build
serve: build serve: build
# Run Docker container with listener for current dir and port mapping # Run Docker container with listener for current dir and port mapping
docker run --rm -p 0.0.0.0:4000:80 -it caution-co 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

View File

@ -39,3 +39,17 @@ $ make _site
```shell ```shell
$ make fullclean $ 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
```