Skip to content
Snippets Groups Projects
Commit 845c2e83 authored by Athanasios Karmas's avatar Athanasios Karmas
Browse files

Update .gitlab-ci.yml

parent 2b46814c
No related branches found
No related tags found
No related merge requests found
...@@ -8,13 +8,14 @@ variables: ...@@ -8,13 +8,14 @@ variables:
#BUILD_ENV: ebrains/ for DT #BUILD_ENV: ebrains/ for DT
BUILD_ENV: test-build BUILD_ENV: test-build
OP: update OP: update
SWIFT_FILE: ebrains-spack-builds${CI_PIPELINE_ID}.tar.gz
copy-files-to-swift: copy-files-to-swift:
stage: upload stage: upload
script: script:
- 'curl -H "X-Auth-Token: ${OS_TOKEN}" -X DELETE ${OBJSTORE}ebrains-spack-builds.tar.gz' #- 'curl -H "X-Auth-Token: ${OS_TOKEN}" -X DELETE ${OBJSTORE}ebrains-spack-builds.tar.gz'
- tar czf ebrains-spack-builds.tar.gz packages/ repo.yaml spack.yaml - tar czf ${SWIFT_FILE} packages/ repo.yaml spack.yaml
- 'curl -H "X-Auth-Token: ${OS_TOKEN}" -i ${OBJSTORE} -X PUT -T ebrains-spack-builds.tar.gz' - 'curl -H "X-Auth-Token: ${OS_TOKEN}" -i ${OBJSTORE} -X PUT -T ${SWIFT_FILE}'
tags: tags:
- shell-runner - shell-runner
...@@ -25,7 +26,7 @@ deploy-build-environment: ...@@ -25,7 +26,7 @@ deploy-build-environment:
script: script:
# create job description file # create job description file
- chmod a+x create_job.sh - chmod a+x create_job.sh
- ./create_job.sh $BUILD_ENV $OP - ./create_job.sh $BUILD_ENV $OP $SWIFT_FILE
- cat simplejob.yml - cat simplejob.yml
# select the project in openshift # select the project in openshift
- oc project jupyterhub-int - oc project jupyterhub-int
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment