Code backing abstractbinary.org
- Nix 65.4%
- Shell 12.7%
- Just 11.7%
- HTML 10.2%
| .woodpecker | ci: fix deployment | |
| static | fix: add a bit of padding to the HTML | |
| .envrc | feat: add empty site | |
| .gitignore | feat: add empty site | |
| .ignore | dev: switch to jj | |
| deployment.yml | ci: fix deployment | |
| flake.lock | matrix: add matrix redirect | |
| flake.nix | matrix: add matrix redirect | |
| Justfile | ci: fix deployment | |
| LICENSE | feat: add empty site | |
| README.md | fix: correct deployment name in restart trigger | |
| trigger-restart.sh | ci: replace GitLab CI with Woodpecker CI | |
abstract-binary.org
Empty website deployed at https://abstractbinary.org
If you need a Nix Flake/Nginx/Gitlab CI/Kubernetes empty website template, feel free to use this repo. All code under MIT license.
Nix Flake
You can build the container with nix build .#container. See
"Building containers with Nix and Gitlab
CI".
Kubernetes
Run the following to deploy to Kubernetes. This creates a namespace, a service, a 2-pod deployment, and a role binding for automatic deployment (see [Triggering Kubernetes rollouts from Gitlab CI][scvalex-ci-deployement] for details).
kubectl apply -f deployment.yml
Kubernetes Ingress (not in this repo)
You will need to add an Ingress like the following to Kubernetes as well in order to expose the service:
apiVersion:networking.k8s.io/v1kind:Ingressmetadata:name:abstractbinary-orgnamespace:abstractbinary-organnotations:cert-manager.io/cluster-issuer:'letsencrypt'spec:ingressClassName:nginxtls:- hosts:- abstractbinary.orgsecretName:abstractbinary-org-certsrules:- host:abstractbinary.orghttp:paths:- path:/pathType:Prefixbackend:service:name:webport:number:80Gitlab CI Variables
GITLAB_DEPLOYER_TOKEN: see [Triggering Kubernetes rollouts from Gitlab CI][scvalex-ci-deployement],CACHIX_AUTH_TOKEN: see Cachix docs.