From accdfcdc8faf5870a07c64c03d1a4fc3785273d6 Mon Sep 17 00:00:00 2001 From: Albin Heimerson <albin.heimerson@control.lth.se> Date: Mon, 28 Aug 2023 13:09:15 +0000 Subject: [PATCH] test --- .gitlab-ci.yml | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 986ab88..aa433c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,18 @@ -stages: - - build - - publish - -build: - stage: build - script: - - wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- - - ./trunk build --release --public-url "$CI_PAGES_URL" - artifacts: - paths: - - dist - +# The Docker image that will be used to build your app +image: rust +# Functions that should be executed before the build script is run +before_script: + - wget -qO- + https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz + | tar -xzf- pages: - stage: publish - dependencies: - - build script: - - mkdir -p public - - mv dist/* public/ + - ./trunk build --release --public-url "$CI_PAGES_URL" artifacts: paths: + # The folder that contains the files to be exposed at the Page URL - public - only: - - main + rules: + # This ensures that only pushes to the default branch will trigger + # a pages deploy + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH -- GitLab