From e04ab179e7b7c8dcd54c74c7ddad3f2fb3abf2b6 Mon Sep 17 00:00:00 2001 From: Chetouane <elias.chetouane@univ-grenoble-alpes.fr> Date: Tue, 16 Jan 2024 10:26:56 +0100 Subject: [PATCH] =?UTF-8?q?Version=20du=20pipeline=20avec=20cr=C3=A9ation?= =?UTF-8?q?=20du=20csv=20+=20push=20dans=20le=20d=C3=A9p=C3=B4t=20git.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ac2f3cd..18958f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,23 +1,14 @@ -build-job: - stage: build - script: - - echo "Hello, $GITLAB_USER_LOGIN!" - -test-job1: - stage: test - script: - - echo "This job tests something" +image: python:3-alpine -test-job2: - stage: test - script: - - echo "This job tests something, but takes more time than test-job1." - - echo "After the echo commands complete, it runs the sleep command for 20 seconds" - - echo "which simulates a test that runs 20 seconds longer than test-job1" - - sleep 20 - -deploy-prod: - stage: deploy - script: - - echo "This job deploys something from the $CI_COMMIT_BRANCH branch." - environment: production +build-dois-csv: + script: + - python run-all-codes.py + - 'standard-version --releaseCommitMessageFormat "chore(release): {{currentTag}}"' + - git remote set-url --push origin git@gricad-gitlab:$CI_PROJECT_PATH + - git add -f dois-uga.csv + - git commit -m "Nouvelle version du csv" + - git push --follow-tags origin HEAD:$CI_COMMIT_REF_NAME + + artifacts: + paths: + - dois-uga.csv -- GitLab