2023-11-10 17:27:01 +00:00
|
|
|
# [milksad.info](https://milksad.info)
|
2023-08-08 21:11:00 +00:00
|
|
|
|
|
|
|
Web page source.
|
|
|
|
|
|
|
|
## Instructions
|
|
|
|
|
|
|
|
1. Install `make`.
|
|
|
|
2. Install `docker`
|
|
|
|
3. Build Docker container
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ make build
|
|
|
|
```
|
|
|
|
|
|
|
|
4. Serve site at `0.0.0.0:4000`:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ make serve
|
|
|
|
```
|
|
|
|
|
2023-11-10 16:51:27 +00:00
|
|
|
### Publish Docker container to Registry
|
2023-08-08 21:11:00 +00:00
|
|
|
|
2023-11-10 16:51:27 +00:00
|
|
|
1. Use `docker login` with a permission token with write package scope
|
|
|
|
2. Tag container with repo name
|
2023-08-08 21:11:00 +00:00
|
|
|
|
|
|
|
```shell
|
2023-11-10 16:51:27 +00:00
|
|
|
docker tag milksad-distrust-co git.distrust.co/milksad/website
|
2023-08-08 21:11:00 +00:00
|
|
|
```
|
|
|
|
|
2023-11-10 16:51:27 +00:00
|
|
|
3. Push container to container registry
|
2023-08-08 21:11:00 +00:00
|
|
|
|
|
|
|
```sh
|
2023-11-10 16:51:27 +00:00
|
|
|
docker push git.distrust.co/milksad/website
|
2023-08-08 21:11:00 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Generate Static Files
|
|
|
|
|
|
|
|
1. Output static files in `_site` directory:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ make _site
|
|
|
|
```
|
|
|
|
|
|
|
|
### Cleanup
|
|
|
|
|
|
|
|
1. Remove all build artifacts:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ make fullclean
|
|
|
|
```
|