2024-03-29 07:28:02 +00:00
|
|
|
include .env
|
|
|
|
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
kubectl delete secret link2cid --ignore-not-found
|
|
|
|
kubectl create secret generic link2cid \
|
|
|
|
--from-literal=apiKey=${LINK2CID_API_KEY}
|
|
|
|
|
|
|
|
kubectl delete secret vultr
|
|
|
|
kubectl create secret generic vultr \
|
|
|
|
--from-literal=vultr=${VULTR_CONTAINER_REGISTRY_USERNAME}
|
|
|
|
|
|
|
|
|
|
|
|
# --from-literal=sessionSecret=$(SESSION_SECRET) \
|
|
|
|
# --from-literal=twitchClientId=$(TWITCH_CLIENT_ID) \
|
|
|
|
# --from-literal=twitchClientSecret=$(TWITCH_CLIENT_SECRET) \
|
|
|
|
# --from-literal=gumroadClientId=$(GUMROAD_CLIENT_ID) \
|
|
|
|
# --from-literal=gumroadClientSecret=$(GUMROAD_CLIENT_SECRET)
|
|
|
|
|
|
|
|
|
|
|
|
define _script
|
|
|
|
cat <<'EOF' | ctlptl apply -f -
|
|
|
|
apiVersion: ctlptl.dev/v1alpha1
|
|
|
|
kind: Cluster
|
|
|
|
product: minikube
|
|
|
|
registry: ctlptl-registry
|
|
|
|
kubernetesVersion: v1.28.3
|
|
|
|
EOF
|
|
|
|
endef
|
|
|
|
export script = $(value _script)
|
|
|
|
cluster:
|
|
|
|
@ eval "$$script"
|
|
|
|
minikube addons enable volumesnapshots
|
|
|
|
minikube addons enable csi-hostpath-driver
|
|
|
|
minikube addons enable metrics-server
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# A gitea act runner which runs locally
|
|
|
|
# https://docs.gitea.com/next/usage/actions/overview
|
|
|
|
runner:
|
2024-03-29 07:45:51 +00:00
|
|
|
docker run -d --rm -e GITEA_INSTANCE_URL=https://gitea.futureporn.net -e GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN} -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/.local/share/applications/fp/act-runner-data:/data --name fp-gitea-act-runner gitea/act_runner:latest
|