2024-08-28 17:07:26 +01:00
# taken from https://gitlab.com/rverchere/marp-gitpod-demo
# by Rémi Verchèr -> as describde in https://medium.com/linkbynet/making-slides-from-anywhere-for-anyone-using-marp-gitlab-pages-and-gitpod-35001daf1c93
2023-11-02 17:48:06 +01:00
2024-08-28 17:07:26 +01:00
stages :
- build
- deploy
generate-deck :
stage : build
image :
name : marpteam/marp-cli
entrypoint : [ "" ]
script :
- mkdir build/
2024-08-28 17:30:58 +01:00
- cp -r images build
2024-08-28 17:07:26 +01:00
- export MARP_USER="$(id -u):$(id -g)"
- /home/marp/.cli/docker-entrypoint -I . -o build/
artifacts :
paths :
- "build/"
2023-11-02 17:48:06 +01:00
pages :
stage : deploy
script :
2024-08-28 17:07:26 +01:00
# Nothing to do, as we just need to publish the build/ dir
2024-08-28 17:30:58 +01:00
- mv build public
2023-11-02 17:48:06 +01:00
artifacts :
paths :
- public
2024-08-28 17:07:26 +01:00
dependencies :
- generate-deck