webbed-site/.gitlab-ci.yml

25 lines
1.3 KiB
YAML
Raw Normal View History

2024-02-20 05:51:43 +00:00
# The Docker image that will be used to build your app
image: debian:stable-slim
# Functions that should be executed before the build script is run
before_script: []
2024-02-19 20:36:25 -06:00
pages:
script:
2024-02-20 05:51:43 +00:00
- '- | apt-get update --assume-yes && apt-get install --assume-yes
--no-install-recommends wget ca-certificates if [ $ZOLA_VERSION ];
then zola_url="https://github.com/getzola/zola/releases/download/v$ZOLA_VERSION/zola-v$ZOLA_VERSION-x86_64-unknown-linux-gnu.tar.gz" if
! wget --quiet --spider $zola_url; then echo "A Zola release
with the specified version could not be found."; exit
1; fi else github_api_url="https://api.github.com/repos/getzola/zola/releases/latest" zola_url=$( wget
--output-document - $github_api_url | grep
"browser_download_url.*linux-gnu.tar.gz" | cut --delimiter :
--fields 2,3 | tr --delete "\" " ) fi wget
$zola_url tar -xzf *.tar.gz ./zola build'
2024-02-19 20:36:25 -06:00
artifacts:
paths:
2024-02-20 05:51:43 +00:00
# The folder that contains the files to be exposed at the Page URL
2024-02-19 20:36:25 -06:00
- public
rules:
2024-02-20 05:51:43 +00:00
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH