prez-concepts-chill/.gitea/workflows/build-image.yml
Julien Fastré 338e753b50
Some checks failed
Build an image to deploy website / build (push) Failing after 6s
add apt-get update in the script
2024-09-30 11:23:53 +02:00

53 lines
1.6 KiB
YAML

name: Build an image to deploy website
on:
# Runs on pushes targeting the default branch
push
#tags:
# - v*
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
# Build job
build:
runs-on: cth-ubuntu-latest
steps:
- name: Check out repository
uses: https://github.com/actions/checkout@v4
- name: update deps
run: apt-get update
- name: Setup pandoc
uses: https://github.com/r-lib/actions/setup-pandoc@vj1
with:
pandoc-version: '3.4'
- name: Build presentation main
run: pandoc -t revealjs --resource-path=.:presentation/src/ -s presentation/src/index.md -o presentation/src/index.html
- name: Build presentation essaimage
run: pandoc -t revealjs --resource-path=.:presentation/src/ -s presentation/src/essaimage.md -o presentation/src/essaimage.html
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Login to registry
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: 'h3m6q87t.gra7.container-registry.ovh.net'
- name: Build and push
uses: https://github.com/docker/build-push-action@v5
with:
context: presentation/
push: true
tags: 'h3m6q87t.gra7.container-registry.ovh.net/prez-concept-chill/presentation:${{ github.ref_name }}'