diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..1467c91 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -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 diff --git a/update-guide.sh b/update-guide.sh index f1c4990..0bdd1bb 100755 --- a/update-guide.sh +++ b/update-guide.sh @@ -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/{