From bbd30957277c5a805c051f28bf730eacf699827f Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Sun, 10 Mar 2024 17:48:21 +0100 Subject: [PATCH] ci: test deploy job --- .forgejo/{actions => workflows}/hugo.yaml | 9 +++++---- content/a-propos-du-site/index.md | 3 +++ content/donnees-personnelles.md | 5 +++++ 3 files changed, 13 insertions(+), 4 deletions(-) rename .forgejo/{actions => workflows}/hugo.yaml (84%) create mode 100644 content/donnees-personnelles.md diff --git a/.forgejo/actions/hugo.yaml b/.forgejo/workflows/hugo.yaml similarity index 84% rename from .forgejo/actions/hugo.yaml rename to .forgejo/workflows/hugo.yaml index 4c17918..42e3368 100644 --- a/.forgejo/actions/hugo.yaml +++ b/.forgejo/workflows/hugo.yaml @@ -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 @@ -39,12 +40,12 @@ jobs: run: echo "${{ secrets.SRV06_DEPLOY_WEBSITE_SSH_KEY }}" > ~/.ssh/id_edsa - name: Upload env: - OUTPUT_PATH: "/warmd/etoiledebethleem/websites/main/${{ GITHUB_BASE_REF }}" + OUTPUT_PATH: "/warmd/etoiledebethleem/websites/main/" 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$GITHUB_REF_NAME diff --git a/content/a-propos-du-site/index.md b/content/a-propos-du-site/index.md index 7ca5e0c..d0a731d 100644 --- a/content/a-propos-du-site/index.md +++ b/content/a-propos-du-site/index.md @@ -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` diff --git a/content/donnees-personnelles.md b/content/donnees-personnelles.md new file mode 100644 index 0000000..fc22a55 --- /dev/null +++ b/content/donnees-personnelles.md @@ -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.