2 Commits

Author SHA1 Message Date
Dave Gallant
2902f5735b Migrate from Makefile to justfile 2024-03-18 21:52:42 -04:00
Dave Gallant
54de6a38c8 Add gitea.snake-cloud.ts.net 2024-03-18 20:37:46 -04:00
4 changed files with 13 additions and 33 deletions

View File

@@ -1,31 +0,0 @@
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
ifeq ($(origin .RECIPEPREFIX), undefined)
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
endif
.RECIPEPREFIX = >
build: clean
> npm ci
> hugo --minify
clean:
> rm -rf public/
## server: run server locally on port 1313 and open in a browser
server:
> hugo server --buildDrafts
## help: Print this help message
help:
> @echo
> @echo "Usage:"
> @echo
> @sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | sort
> @echo
.PHONY: help

View File

@@ -15,7 +15,7 @@ If you would like to connect with me:
- [Mastodon](https://mastodon.social/@davegallant)
- [GitHub](https://github.com/davegallant)
- [RSS Feed](https://davegallant.ca/index.xml)
- [git.davegallant.ca](https://git.davegallant.ca/explore/repos)
- [gitea.snake-cloud.ts.net](https://gitea.snake-cloud.ts.net/explore/repos)
## Credits

View File

@@ -94,7 +94,7 @@ Note that you must specify a `TS_AUTHKEY` in the `ts-gitea` service. You can gen
"${TS_CERT_DOMAIN}:443":
{ "Handlers": { "/": { "Proxy": "http://127.0.0.1:3000" } } },
},
"AllowFunnel": { "${TS_CERT_DOMAIN}:443": false },
"AllowFunnel": { "${TS_CERT_DOMAIN}:443": false }
}
```
@@ -185,3 +185,5 @@ One enhancement that I would like to see is the ability to send notifications on
Gitea Actions are fast and the resource footprint is minimal. My gitea instance is currently using around 250mb of memory and a small fraction of a single cpu core (and the runner is using a similar amount of resources). This is impressive since many alternatives tend to require substantially more resources. It likely helps that the codebase is largely written in go.
By combining gitea with the networking marvel that is tailscale, running workflows becomes simple and fun. Whether you are working on a team or working alone, this setup ensures that your workflows are securely accessible from anywhere with an internet connection.
Check out my gitea instance exposed via Funnel [here](https://gitea.snake-cloud.ts.net).

9
justfile Normal file
View File

@@ -0,0 +1,9 @@
build: clean
npm ci
hugo --minify
clean:
rm -rf public/
server:
hugo server --buildDrafts