From 936ecb48fe27de6898cac0a49358f5c0624341c2 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Mon, 19 May 2025 12:27:52 +0200 Subject: [PATCH] 1er commit et test du staging --- .gitea/workflows/deploy.yml | 18 ++++++++++++++++++ config.toml | 3 +++ content/_index.md | 14 ++++++++++++++ layouts/index.html | 15 +++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 .gitea/workflows/deploy.yml create mode 100644 config.toml create mode 100644 content/_index.md create mode 100644 layouts/index.html diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..5cb160e --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,18 @@ +name: Déploiement Hugo Staging + +on: + push: + branches: + - master + +jobs: + deploy-staging: + runs-on: self-hosted + steps: + - name: Récupération du code + uses: actions/checkout@v2 + - name: Déploiement sur staging + run: | + cd /home/deploy/staging + git pull gitea master + docker compose -f docker-compose.staging.yml up -d diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..7154f27 --- /dev/null +++ b/config.toml @@ -0,0 +1,3 @@ +baseURL = "https://ptits-pas.fr/" +languageCode = "fr" +title = "Mon Super Site" diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..310ea90 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,14 @@ +--- +title: "Bienvenue sur Ptits-Pas" +date: 2025-05-17T12:00:00+02:00 +--- + +# Salut ! On teste que tout fonctionne bien comme il faut :p + +Bienvenue sur mon site **Ptits-Pas**, propulsé par Hugo ! + +- C’est ici que je présente mes projets +- Un lien vers [Gitea](https://git.ptits-pas.fr) +- Un lien vers [Taiga](https://projets.ptits-pas.fr) + +> Pour modifier cette page, édite `content/_index.md`. diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..6d62ab0 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,15 @@ + + + + + {{ .Title }} + + +
+ {{ .Content }} +
+ + +