Files
CoqResearch/.gitea/workflows/deploy.yml
T
alois 231313ee28
Build and Deploy Jekyll / build (push) Successful in 0s
enlever authentification git clone
2026-05-25 14:50:04 +00:00

45 lines
1.3 KiB
YAML

name: Build and Deploy Jekyll
on:
push:
branches:
- main
jobs:
build:
runs-on: native
timeout-minutes: 15
steps:
- name: Build Jekyll in Kubernetes job
run: |
cat <<'EOF' | kubectl apply -f -
apiVersion: batch/v1
kind: Job
metadata:
name: jekyll-build
namespace: ci
spec:
backoffLimit: 0
template:
spec:
restartPolicy: Never
containers:
- name: jekyll
image: ruby:3.3-alpine
command:
- sh
- -c
- |
apk add --no-cache git build-base
git clone --depth 1 https://git.alocoq.fr/alois/CoqResearch.git /work
cd /work
bundle install
bundle exec jekyll build
env:
- name: GITEA_TOKEN
valueFrom:
secretKeyRef:
name: gitea-token
key: token
EOF