From 4dda727ded6a5448eafe22b78e03582f7d257062 Mon Sep 17 00:00:00 2001 From: Paul Cancel <paul.cancel.etu@univ-lille.fr> Date: Sun, 10 Dec 2023 12:58:21 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0b0ab6a..3b9a7ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,13 @@ -# The Docker image that will be used to build your app -image: busybox - pages: - stages: deploy - script: - - echo "nothing to do" - artifacts: - paths: - - public - expire_in: 1 day - rules: - - if $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + stage: deploy + environment: production + script: + - mkdir .public + - cp -r ./* .public + - rm -rf public + - mv .public public + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH -- GitLab