From 5499345cfac23e745f66fb61af3632471285ff83 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 | 17 ++++++++++------- content/a-propos-du-site/index.md | 3 +++ content/donnees-personnelles.md | 5 +++++ 3 files changed, 18 insertions(+), 7 deletions(-) rename .forgejo/{actions => workflows}/hugo.yaml (74%) create mode 100644 content/donnees-personnelles.md diff --git a/.forgejo/actions/hugo.yaml b/.forgejo/workflows/hugo.yaml similarity index 74% rename from .forgejo/actions/hugo.yaml rename to .forgejo/workflows/hugo.yaml index 4c17918..176bfa0 100644 --- a/.forgejo/actions/hugo.yaml +++ b/.forgejo/workflows/hugo.yaml @@ -12,7 +12,12 @@ 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 + env: + OUTPUT_PATH: "/warmd/etoiledebethleem/websites/main/${{ GITHUB_REF_NAME }}" + REMOTE_USER: forgejo_actions_websites + SRV_HOST: srv06.lefuturiste.fr steps: - name: Install rsync run: apt update && apt install -y rsync @@ -37,14 +42,12 @@ 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 }}" - 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 }}" 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.