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
This commit is contained in:
lucaskev 2026-03-24 18:29:18 +00:00
commit ed579ebcfb
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" echo "$GUIDE_EDGEDOC_URL"
set -e 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 pandoc --from markdown --to html guide.tmp.md > guide.tmp.html
cat guide.template.html \ cat guide.template.html \
| sed '/EDGEDOC/{ | sed '/EDGEDOC/{