From 672cc9beb3d1ea95d17e7fa94e32641fa5d1826e Mon Sep 17 00:00:00 2001 From: Athanasios Karmas <karmas@athenarc.gr> Date: Tue, 13 Jul 2021 10:06:31 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index af92580e..ddcf48d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,20 +3,20 @@ stages: - deploy variables: - + OPENSHIFT_SERVER: https://okd-dev.hbp.eu + BUILD_ENV: int-build deploy-artifacts: stage: deploy before_script: - - tar czvf binaryArtifacts.tar.gz ${CI_PROJECT_DIR}/jobs_scratch_dir/mirror/build_cache/* - oc login "$OPENSHIFT_SERVER" --token="$OPENSHIFT_TOKEN" script: # create job description file - chmod a+x create_job.sh - - ./create_job.sh $CAT_URL $CAT_ART_NAME $CAT_SRC_DIR $CAT_DEST_DIR + - ./create_job.sh $BUILD_ENV - cat simplejob.yml # select the project in openshift - - oc project jupyterhub-dev + - oc project jupyterhub-int # delete the job (if exist) - oc delete job simplejob || true # start the deploy job -- GitLab