ci: migrate GitHub actions to Gitea actions
Deploy CV Site (andreknie.de) / deploy (push) Canceled after 0s

This commit is contained in:
2026-07-22 15:42:06 +02:00
parent e1cf49b0a2
commit b46de6dc7d
649 changed files with 127224 additions and 2786 deletions
+31 -2
View File
@@ -1,5 +1,6 @@
stages:
- build
- test
- deploy
variables:
@@ -60,5 +61,33 @@ deploy-andreknie:
- rsync -az --delete -e "ssh -i ~/.ssh/deploy_key -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes" server/ "${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/server/"
- rsync -az -e "ssh -i ~/.ssh/deploy_key -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes" package.json package-lock.json Dockerfile docker-compose.yml Caddyfile .env "${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/"
- ssh -i ~/.ssh/deploy_key -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes "${DEPLOY_USER}@${DEPLOY_HOST}" "cd ${DEPLOY_PATH} && docker compose up -d --build"
# Note: Caddy configuration needs to be reloaded manually if it's the first time.
- echo "Deployment finished. Remember to include ${DEPLOY_PATH}/Caddyfile in your global /etc/caddy/Caddyfile and reload caddy if you haven't yet!"
- ssh -i ~/.ssh/deploy_key -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes "${DEPLOY_USER}@${DEPLOY_HOST}" "cd ${DEPLOY_PATH} && docker compose exec caddy caddy reload --config /etc/caddy/Caddyfile"
- echo "Deployment finished. Caddy configuration reloaded successfully."
smoketest:
stage: test
image: node:20
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
script:
- cd privat/CV/andreknie.de
- npm ci
- node scripts/smoketest.js
artifacts:
paths:
- privat/CV/andreknie.de/public-dashboard/
expire_in: 1 week
pages:
stage: deploy
image: alpine:latest
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
dependencies:
- smoketest
script:
- mv privat/CV/andreknie.de/public-dashboard public
artifacts:
paths:
- public
expire_in: 1 week