Files
paperless-ngx-deployment/.gitea/workflows/deploy.yml
T
feedc0de 8c2af0de52
Test and deploy / test (push) Successful in 28s
Test and deploy / deploy (push) Failing after 28s
Enable Authentik login and prefer arschrock for OCR
2026-10-04 17:51:08 +02:00

29 lines
749 B
YAML

name: Test and deploy
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container: node:22-alpine
steps:
- uses: actions/checkout@v4
- run: apk add --no-cache bash python3 py3-yaml && ./test.sh
deploy:
if: github.event_name == 'push'
needs: test
runs-on: ubuntu-latest
container: node:22-alpine
steps:
- uses: actions/checkout@v4
- run: apk add --no-cache bash python3 py3-yaml kubectl
- run: |
umask 077
echo "$KUBE_CONFIG_BASE64" | base64 -d > kubeconfig
export KUBECONFIG="$PWD/kubeconfig"
./deploy.sh
rm -f kubeconfig
env:
KUBE_CONFIG_BASE64: ${{ secrets.KUBE_CONFIG_BASE64 }}