Compare commits
4 commits
a4fc96fdeb
...
ed579ebcfb
| Author | SHA1 | Date | |
|---|---|---|---|
| ed579ebcfb | |||
|
|
fa03cf79cc | ||
|
|
738cde0f4a | ||
| d8edb61bbf |
2 changed files with 33 additions and 1 deletions
32
.forgejo/workflows/build.yaml
Normal file
32
.forgejo/workflows/build.yaml
Normal 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
|
||||||
|
|
@ -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/{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue