diff --git a/README.md b/README.md index a66754f..e119fb1 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,23 @@ > This is a work in progress. The end goal of this is to have a new design and > implementation for [`lumbung.space`](https://lumbung.space) for January 2022. -## Hacking +## FAQ -[Install Hugo](https://gohugo.io/getting-started/installing/). +### How does the CI/CD work? + +[`.drone.yml`](./.drone.yml) builds the [`Dockerfile.hugo`](./Dockerfile.hugo) +and the [`Dockerfile.scripts`](./Dockerfile.scripts) and then deploys the +[`compose.yml`](./compose.yml) stack using `docker stack deploy`. + +### How often is the content regenerated? + +See the `sleep ...` statements in the [`compose.yml`](./compose.yml). + +## Hacking ### Generate the site -`hugo serve --watch` +[Install Hugo](https://gohugo.io/getting-started/installing/) and `hugo serve --watch` ### Generate `lumbung[dot]space` posts @@ -33,3 +43,15 @@ lumbunglib-vid ``` Afterwards, you can automatically run it with `make gen`. + +### Manually deploying new images + +- `docker login -u decentral1se -p $(logins/dockerhub/decentral1se)` +- `make push-hugo` +- `make push-scripts` + +### Manually deploy the site + +(requires `lumbung.space` docker context) + +- `make deploy` diff --git a/makefile b/makefile index aa59b6e..b548575 100644 --- a/makefile +++ b/makefile @@ -17,4 +17,7 @@ push-scripts: @docker build -t decentral1se/beta.lumbung.space-scripts -f Dockerfile.scripts . && \ docker push decentral1se/beta.lumbung.space-scripts -.PHONY: serve gen push-hugo +deploy: + @DOCKER_CONTEXT=lumbung.space docker stack deploy -c compose.yml beta_lumbung_space + +.PHONY: serve gen push-hugo push-scripts deploy