ci: test deploy job
Some checks failed
Deploy workflow / deploy (push) Failing after 27s

This commit is contained in:
Matthieu Bessat 2024-03-10 17:48:21 +01:00
parent e7509a9225
commit 9040480f9b
3 changed files with 15 additions and 4 deletions

View file

@ -12,7 +12,8 @@ on:
jobs:
deploy:
runs-on: docker
# by default it runs on a node.js debian image
container:
image: code.forgejo.org/oci/node:20-bookworm
steps:
- name: Install rsync
run: apt update && apt install -y rsync
@ -37,14 +38,16 @@ jobs:
run: install -m 600 -D /dev/null ~/.ssh/id_edsa
- name: Populate Key
run: echo "${{ secrets.SRV06_DEPLOY_WEBSITE_SSH_KEY }}" > ~/.ssh/id_edsa
- name: echo output path
run: echo $OUTPUT_PATH
- name: Upload
env:
OUTPUT_PATH: "/warmd/etoiledebethleem/websites/main/${{ GITHUB_BASE_REF }}"
OUTPUT_PATH: "/warmd/etoiledebethleem/websites/main/${{ env.GITHUB_REF_NAME }}"
REMOTE_USER: forgejo_actions_websites
SRV_HOST: srv06.lefuturiste.fr
run: |
rsync --perms --archive --stats \
rsync --perms --archive --stats -v \
-e 'ssh -i ~/.ssh/id_edsa -o StrictHostKeyChecking=no' ./public \
${REMOTE_USER}@${SRV_HOST}:${OUTPUT_PATH}
$REMOTE_USER@$SRV_HOST:$OUTPUT_PATH

View file

@ -36,3 +36,6 @@ Pour les curieux, ce site est réalisé avec [Hugo](https://gohugo.io/).
Vous pouvez trouver [le code source de ce site web sur ce dépot en ligne](https://forge.lefuturiste.fr/etoiledebethleem/website).
## Version
Version du site : `v1.0`

View file

@ -0,0 +1,5 @@
---
title: Politique de données personnelles
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.