Makefile: add publish target
This commit is contained in:
parent
f905e68a5f
commit
7eb3a7879b
5
Makefile
5
Makefile
|
@ -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
|
||||||
|
|
14
README.md
14
README.md
|
@ -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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue