pleroma/.woodpecker/deploy.yaml
2025-04-08 13:47:29 -04:00

94 lines
No EOL
2.7 KiB
YAML

when:
- branch: master
event: [push, pull_request]
depends_on:
- build
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
# TODO: extend this to use an image that has our root certificate baked in
skip-verify: true
steps:
darkdork.dev:
image: cr.forge.lan/alk8s/alk8s
pull: true
environment:
KUBECONFIG_BASE64:
from_secret: kubeconfig_base64
CI_COMMIT_SHA: ${CI_COMMIT_SHA}
commands:
- mkdir -p ~/.kube
- echo $KUBECONFIG_BASE64 | base64 -d > ~/.kube/config
- pwd
- kubectl apply -Rf manifests/darkdork.dev
postgres:
image: cr.forge.lan/alk8s/alk8s
pull: true
environment:
KUBECONFIG_BASE64:
from_secret: kubeconfig_base64
CI_COMMIT_SHA: ${CI_COMMIT_SHA}
commands:
- mkdir -p ~/.kube
- echo $KUBECONFIG_BASE64 | base64 -d > ~/.kube/config
- pwd
- kubectl apply -Rf manifests/postgres
minio:
image: cr.forge.lan/alk8s/alk8s
pull: true
environment:
KUBECONFIG_BASE64:
from_secret: kubeconfig_base64
CI_COMMIT_SHA: ${CI_COMMIT_SHA}
commands:
- mkdir -p ~/.kube
- echo $KUBECONFIG_BASE64 | base64 -d > ~/.kube/config
- pwd
- kubectl apply -Rf manifests/minio
tor:
image: cr.forge.lan/alk8s/alk8s
pull: true
environment:
KUBECONFIG_BASE64:
from_secret: kubeconfig_base64
CI_COMMIT_SHA: ${CI_COMMIT_SHA}
commands:
- mkdir -p ~/.kube
- echo $KUBECONFIG_BASE64 | base64 -d > ~/.kube/config
- pwd
- echo ${CI_COMMIT_SHA}
- kubectl apply -Rf manifests/tor
- env
- envsubst '\${CI_COMMIT_SHA}' < manifests/tor/deployment.yaml.template
- envsubst '\${CI_COMMIT_SHA}' < manifests/tor/deployment.yaml.template | kubectl apply -f -
privoxy:
image: cr.forge.lan/alk8s/alk8s
pull: true
environment:
KUBECONFIG_BASE64:
from_secret: kubeconfig_base64
CI_COMMIT_SHA: ${CI_COMMIT_SHA}
commands:
- mkdir -p ~/.kube
- echo $KUBECONFIG_BASE64 | base64 -d > ~/.kube/config
- pwd
- kubectl apply -Rf manifests/privoxy
- envsubst "${CI_COMMIT_SHA}" < manifests/privoxy/deployment.yaml.template | kubectl apply -f -
pleroma:
image: cr.forge.lan/alk8s/alk8s:latest
pull: true
environment:
KUBECONFIG_BASE64:
from_secret: kubeconfig_base64
CI_COMMIT_SHA: ${CI_COMMIT_SHA}
commands:
- mkdir -p ~/.kube
- echo $KUBECONFIG_BASE64 | base64 -d > ~/.kube/config
- pwd
- kubectl apply -Rf manifests/pleroma
- envsubst "${CI_COMMIT_SHA}" < manifests/pleroma/deployment.yaml.template | kubectl apply -f -