10 Commits

Author SHA1 Message Date
407b9946f8 Ajoute une tâche "hugo serve" pour vscodium
All checks were successful
Build and push chill website image / build (push) Successful in 1m10s
2025-07-17 13:18:57 +02:00
1b7b81db46 Correction paragraphe code source (#9)
All checks were successful
Build and push chill website image / build (push) Successful in 1m39s
Reviewed-on: #9
Co-authored-by: Céline Nicolay <celine.nicolay@champs-libres.coop>
Co-committed-by: Céline Nicolay <celine.nicolay@champs-libres.coop>
2025-07-17 09:19:02 +00:00
3e38e95bc5 Correction Typo Suivi des usagers (#8)
All checks were successful
Build and push chill website image / build (push) Successful in 1m12s
changement de décrits en décrites

Reviewed-on: #8
Co-authored-by: Céline Nicolay <celine.nicolay@champs-libres.coop>
Co-committed-by: Céline Nicolay <celine.nicolay@champs-libres.coop>
2025-07-17 08:52:37 +00:00
bf7bc437a4 Add id to build-push step to correctly add tag_image variable
All checks were successful
Build and push chill website image / build (push) Successful in 1m9s
2025-07-16 16:04:09 +02:00
bbcf829660 Correct container name to patch deployment image
All checks were successful
Build and push chill website image / build (push) Successful in 1m12s
2025-07-16 15:45:09 +02:00
048ec07457 Correct wrong indent in build-image.yaml
Some checks failed
Build and push chill website image / build (push) Failing after 1m7s
2025-07-16 15:38:47 +02:00
3eec6160bb Replace style config deprecation and adjust hugo version
Some checks failed
Build and push chill website image / build (push) Failing after 1m14s
2025-07-16 15:36:10 +02:00
af835683b9 Replace deprecated paginate config
Some checks failed
Build and push chill website image / build (push) Failing after 33s
2025-07-16 15:22:46 +02:00
075c29b495 Merge branch 'main' of gitea.champs-libres.be:champs-libres/chill_hugoplate
Some checks failed
Build and push chill website image / build (push) Failing after 1m24s
2025-07-16 15:03:54 +02:00
496e3b76e1 Setup automatic deployment 2025-07-16 15:03:39 +02:00
6 changed files with 78 additions and 19 deletions

View File

@@ -1,10 +1,11 @@
name: Build an image to deploy website
name: Build and push chill website image
on:
# Runs on pushes targeting the default branch
push:
tags:
- v*
branches:
- main
- master
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
@@ -15,9 +16,11 @@ permissions:
# Environment variables available to all jobs and steps in this workflow
env:
HUGO_ENV: production
HUGO_VERSION: "0.121.2"
HUGO_VERSION: "0.136.2"
GO_VERSION: "1.21.4"
NODE_VERSION: "18"
KUBE_CA: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZCRENDQXV5Z0F3SUJBZ0lCS2pBTkJna3Foa2lHOXcwQkFRc0ZBREFSTVE4d0RRWURWUVFEREFaM05YWTEKZWpRd0hoY05Nakl4TWpFd01qRXdNRFV4V2hjTk1qY3hNakE1TWpFd01EVXhXakFSTVE4d0RRWURWUVFEREFaMwpOWFkxZWpRd2dnSWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUNEd0F3Z2dJS0FvSUNBUUN0R01hZlNxYzNJc2lpCmp2QjU4ZFhNNk42Z1hMV2hyODU0MlV0N09RSGRLTFZuY2NJTE94R2w0ZkdxWDBEREJlYkE1MWd6ZVR3b0pObWMKNHhpSW5vaWp4VFdWNW0wQ2REU2FrTUpEajJiNGJLbVdVZTBIRDg5YzZ4N20rM3RBR1Myekl5amtmTlVXKy9YRApXNVp4NmQrSjY4VWdmNXN1VnVCL0lXWjFJSEE3YVc3N2FYeStnV1BrYWVVdVpSWXFyMFB3NnVVM0lDZFp6K053CjdRNDRLczlmdUtSK29yT2JwSXRLTUViOUVkUEtGZWs2U3RVK0VJS0gvNnNLZzdKRHdQN1VhVnZhdkhEQXVONlcKb1FuT1JRN1BQM0xTdU9TdFVQcWY3Y09MU2ZQTVdISys5MTRJRFpBaEdVUllYck5keDU4TnV1ZERkTHFUV0VadQpsU01RN3JXdHk3OXBOVnQyOXdYLzhnMTd2NEdBemFGTTJJYUNPUnZVSTZlZnRRY3lybVVIelhCNlhLOVQ2YzN6Ck9CUU5neDh4emRyZ0xCQ3FxNmJSenNMc1M2TWFWY0VNcml6dk9QN3FUcTJKK2VEbzdST3drQjNaZmprT214bDAKVEdLMDgrbGxMNl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ZSt5cjFjM1BYYzZISWdSSXhhWHVWTEd2ZnlDY2JNaFBFVkVEUS9CUndrMjNscQpzL05Gc1RUWXZnQjlYSXZTT0FwdGlFRlFsNzRKVFU2WjFta2lQTVRNUXdtNGFZc2lqNytaTHpNRUdrbk9sVVdUCmtaRzRpTUlXKzJjcGN0cEFHV3pmZmVBTFR2ZHlDVkJWdjdHZ1VwWWYwTlRjSVByN0FNWE9lU2YrcWhmUHo1WkYKR2s5aEJIc2dSbGR5cWxKZ1JJcUJuaTZ6OGMwQk42UUtMbDJpMDVqcWxUN2VFalM0WHZhUnUxY0VQUndNZEJYSgp2eWhXOWNZdmh0SEl2aW0zOXRBTkNpK3dUR1ZMd3NRN0NEVmNhck5KRVJJSms2aUhPUXZicVE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
KUBE_SERVER: https://w5v5z4.c1.gra9.k8s.ovh.net
jobs:
# Build job
@@ -63,8 +66,54 @@ jobs:
registry: 'h3m6q87t.gra7.container-registry.ovh.net'
- name: Build and push
id: build-push
uses: https://github.com/docker/build-push-action@v5
with:
context: .
push: true
tags: 'h3m6q87t.gra7.container-registry.ovh.net/chill_website/web:${{ github.ref_name }}'
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/v1.31.0/bin/linux/amd64/kubectl"
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
- name: Set up kubeconfig
env:
KUBE_SERVER: ${{ env.KUBE_SERVER }} # e.g. https://<API_ENDPOINT>
KUBE_CA: ${{ env.KUBE_CA }} # base64 encoded, or fetched via kubectl config view
KUBE_TOKEN: ${{ secrets.KUBE_TOKEN }} # Token generated via 'kubectl create token'
run: |
mkdir -p ~/.kube
cat <<EOF > ~/.kube/config
apiVersion: v1
kind: Config
clusters:
- name: default-cluster
cluster:
server: "$KUBE_SERVER"
certificate-authority-data: "$KUBE_CA"
contexts:
- name: default-context
context:
cluster: default-cluster
user: gitea-actions
current-context: default-context
users:
- name: gitea-actions
user:
token: "$KUBE_TOKEN"
EOF
- name: Patch Deployment Image
env:
NAMESPACE: chill-website
DEPLOYMENT: chill-website
CONTAINER: front
BASE_IMAGE: 'h3m6q87t.gra7.container-registry.ovh.net/chill_website/web'
TAG_IMAGE: '${{ steps.build-push.outputs.digest }}'
run: |
echo "deploy new tag: $TAG_IMAGE"
env
kubectl -n ${NAMESPACE} set image deployment/${DEPLOYMENT} ${CONTAINER}=${BASE_IMAGE}@${TAG_IMAGE}

17
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,17 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Hugo Serve",
"type": "shell",
"command": "hugo",
"args": ["serve"],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"detail": "Sert le site Hugo localement"
}
]
}

View File

@@ -32,7 +32,7 @@ Chaque ligne dans ce budget est historicisée, de sorte que les anciennes donné
Chill permet d'enregistrer des personnes ou des tiers comme "ressources": médecins, voisins, traducteurs, proches parents, etc.
Ces "ressources" peuvent être décrits comme un texte libre, ou provenir d'une base de donnée de tiers entretenue en commun. Il est également possible de renseigner d'autres usagers comme "ressources".
Ces "ressources" peuvent être décrites comme un texte libre, ou provenir d'une base de donnée de tiers entretenue en commun. Il est également possible de renseigner d'autres usagers comme "ressources".
<h5 class="content-subtitle bord-1">Téléverser et générer des documents</h5>
@@ -45,3 +45,4 @@ Il est également possible de générer des documents à partir de chaque fiche.
Les travailleurs sociaux peuvent enregistrer **des tâches à réaliser** dans le dossier d'usager: prendre contact avec un avocat, rappeler la personne le jour après la prochaine opération, etc.
Ces tâches peuvent disposer d'une date d'échéance. Elles sont alors rappelées sur la page d'accueil de l'utilisateur·trice.

View File

@@ -8,19 +8,11 @@ comments: false
<h5 class="content-subtitle bord-1">Code source de Chill</h5>
Le code source de Chill se trouve dans deux dépôts distincts.
Le code source de Chill est hébergé sur gitlab: [le dépot chill-bundles](https://gitlab.com/Chill-Projet/chill-bundles) comporte les fonctionnalités principales de Chill.
Le premier dépôt, appelé `chill-skeleton-basic`, est celui utilisé pour l'[installation]().
Ce dépôt est un ensemble de bundles Symfony. Pour être déployées, il est préférable de les inclure dans une application Symfony, en les incluant dans les dépendances composer. De cette manière, il est aussi possible de personnaliser la configuration et l'exécution de l'application.
Il contient toutes les dépendances nécessaires à l'installation. C'est dans ce dépôt qu'on peut aussi personnaliser Chill.
https://gitea.champs-libres.be/Chill-project/chill-skeleton-basic
(Attention, [le dépôt sur gitlab](https://gitlab.com/Chill-Projet/chill-skeleton-basic) est en readonly depuis avril 2023)
Le second dépôt, nommé `chill-bundles` est en réalité le dépôt principal de Chill. C'est un regroupement des Bundles les plus couramment utilisés, qui peuvent être activés/désactivés selon les besoins.
https://gitlab.com/Chill-Projet/chill-bundles
C'est une dépendance que `composer` va installer tout seul, raison pour laquelle ce paquet est répertorié dans l'écosystème des packages PHP: https://packagist.org/packages/chill-project/chill-bundles
La procédure est expliquée [dans la documentation](https://docs.chill.soccial/en/latest)
<h5 class="content-subtitle bord-2">Issues</h5>

View File

@@ -12,8 +12,8 @@ theme = "hugoplate"
# Default time zone for time stamps; use any valid tz database name: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
timeZone = "Europe/Brussels"
# post pagination
paginate = 2 # see https://gohugo.io/extras/pagination/
[pagination]
pagerSize = 2 # see https://gohugo.io/extras/pagination/
# post excerpt
summaryLength = 10 # see https://gohugo.io/content-management/excerpts/

View File

@@ -45,7 +45,7 @@
{{ end }}
{{ $styles := $styles | append (resources.Get "scss/main.scss" | toCSS) }}
{{ $styles := $styles | resources.Concat "css/style.css" }}
{{ $styles = $styles | resources.PostCSS }}
{{ $styles = $styles | css.PostCSS }}
{{ if hugo.IsProduction }}
{{ $styles = $styles | resources.ExecuteAsTemplate "css/style.css" . | minify | fingerprint | resources.PostProcess }}
{{ else }}