Commit bc90d536 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

CI minor change

parent 5180d9f7
......@@ -2,8 +2,8 @@ stages:
- build
- generate-test-env
- test
- publish
- dockerize
- publish
variables:
# to avoid "fatal: git fetch-pack: expected shallow list"
......@@ -52,13 +52,6 @@ test:
only:
- master
upload_jar:
stage: publish
tags:
- shell
script:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file target/vospace.jar "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/vospace-rest/latest/vospace-rest.jar"'
dockerize:
stage: dockerize
tags:
......@@ -70,3 +63,12 @@ dockerize:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
upload_jar:
stage: publish
tags:
- shell
only:
- master
script:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file target/vospace.jar "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/vospace-rest/latest/vospace-rest.jar"'
Supports Markdown
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