From db3ea4ac41dfc535fc41f8a0984d910adb1ae252 Mon Sep 17 00:00:00 2001 From: Yannis Barlas <yannisbarlas@gmail.com> Date: Fri, 14 Jun 2024 07:14:13 +0000 Subject: [PATCH] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68db57342..aaaf28a15 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,11 +8,11 @@ variables: BUILD_PATH: . stages: - - Build demo - - Deploy demo + - Build + - Deploy build demo: - stage: Build demo + stage: Build image: docker:26 services: - docker:26-dind @@ -28,6 +28,19 @@ build demo: $BUILD_PATH - docker push $IMAGE_NAME_DEMO:$CI_COMMIT_SHA - docker push $IMAGE_NAME_DEMO:latest + only: + - master + +pages: + stage: Deploy + image: $IMAGE_NAME_DEPLOY + script: + - mv _build public + artifacts: + paths: + public + only: + - master # .build demo image: # extends: .build production -- GitLab