Compare commits

...

4 commits

Author SHA1 Message Date
ed579ebcfb Merge pull request 'Ajout d'un fichier d'action pour CI pour générer l'image docker du site web automatiquement' (#32) from feat/ci-build into main
All checks were successful
/ build (push) Successful in 3m17s
Reviewed-on: #32
2026-03-24 18:29:18 +00:00
Hadrien
fa03cf79cc fix(ci): curl flags
All checks were successful
/ build (push) Successful in 3m43s
2026-03-24 19:21:47 +01:00
Hadrien
738cde0f4a fix(ci): build guide.html
Some checks failed
/ build (push) Failing after 1m29s
2026-03-24 19:16:19 +01:00
d8edb61bbf Ajout d'un fichier d'action pour CI
Some checks failed
/ build (push) Failing after 2m58s
fix(ci): don't run on docker

Revert "fix(ci): don't run on docker"

This reverts commit 3e833a5960.

fix(ci): use podman

fix(ci): podman username opt

fix(ci): podman, defaulting on not stdin password

Revert "fix(ci): podman, defaulting on not stdin password"

This reverts commit a7a86ff25a.
2026-03-24 19:03:31 +01:00
2 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,32 @@
on: [push]
jobs:
build:
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Pandoc
run: |
apt-get update
apt-get install -y pandoc
- name: Generate guide.html
run: bash update-guide.sh
- name: Install Podman
run: |
apt-get update
apt-get install -y podman
- name: Podman Login
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | podman login git.interhacker.space --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build Container Image
run: |
podman build -t git.interhacker.space/interhack/camp-website-2026:latest .
- name: Push Container Image
run: |
podman push git.interhacker.space/interhack/camp-website-2026:latest

View file

@ -8,7 +8,7 @@ echo "Mise a jour du guide dans guide.html a partir du edgedoc"
echo "$GUIDE_EDGEDOC_URL"
set -e
curl --silent --fail-with-body "$GUIDE_EDGEDOC_URL/download" > guide.tmp.md
curl --silent --fail "$GUIDE_EDGEDOC_URL/download" > guide.tmp.md
pandoc --from markdown --to html guide.tmp.md > guide.tmp.html
cat guide.template.html \
| sed '/EDGEDOC/{