ci: push to docs (#5274)
All checks were successful
continuous-integration/drone/push Build is passing

This seems like something we should be doing.

I have some vague memory of trying this before and there being issues as we are coming from the `fsfe` namespace rather than the `fsfe-system-hackers` namespace, but we should be able to get it working eventually regardless.

I will let it run on prs for testing, but before merge we should have it only run on commits to master

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5274
This commit is contained in:
2025-09-18 12:37:00 +00:00
parent c008b19748
commit 8e726cba5a

View File

@@ -22,6 +22,21 @@ steps:
- echo "DRONE_COMMIT_BRANCH ${DRONE_COMMIT_BRANCH}"
- docker compose -p fsfe-website-pre-commit run --remove-orphans --build pre-commit "origin/${DRONE_COMMIT_BRANCH}"
- name: push-to-docs
image: git.fsfe.org/fsfe-system-hackers/docs-centralizer:latest
environment:
REPO_OWNER: FSFE
REPO_NAME: fsfe-website
SSH_PRIVATE_KEY:
from_secret: docs_bot_private_key
when:
branch:
- master
event:
- push
- tag
- deployment
- name: deploy-master
image: docker:27.4.1
environment:
@@ -107,4 +122,4 @@ volumes:
path: /run/user/1001/docker.sock
---
kind: signature
hmac: d01ec3f92e3e0261685c7c803c16002e809134015692d0cafb3eb8110365082f
hmac: 90c89291c80d406e84622f2a018a05041e28584ea3cfa567d2db744a08d225d3