From 2bc771c2c610881d72d0e9db5f52eb6b8b5c13df Mon Sep 17 00:00:00 2001 From: Jonas Karl Wilhelm Hahn Date: Wed, 23 Apr 2025 21:40:36 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0729f4f..67c59d2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,18 +1,10 @@ -# The Docker image that will be used to build your app -image: rust:latest -create-pages: - pages: - # The folder that contains the files to be exposed at the Page URL - publish: public +image: ghcr.io/myriad-dreamin/shiroa:v0.3.0 + +pages: + script: + - shiroa build --dest-dir public artifacts: paths: - public rules: - # This ensures that only pushes to the default branch will trigger - # a pages deploy - - if: $CI_COMMIT_BRANCH == "main" - # Functions that should be executed before the build script is run - before_script: - - cargo install --git https://github.com/Myriad-Dreamin/shiroa --locked shiroa - script: - - shiroa build -d public + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH \ No newline at end of file