Skip to content
Snippets Groups Projects
Commit edb9970a authored by Sonia Zorba's avatar Sonia Zorba
Browse files

CI minor change

parent 77bf7696
No related branches found
No related tags found
No related merge requests found
Pipeline #5340 passed
...@@ -2,8 +2,8 @@ stages: ...@@ -2,8 +2,8 @@ stages:
- build - build
- generate-test-env - generate-test-env
- test - test
- publish
- dockerize - dockerize
- publish
variables: variables:
# to avoid "fatal: git fetch-pack: expected shallow list" # to avoid "fatal: git fetch-pack: expected shallow list"
...@@ -52,13 +52,6 @@ test: ...@@ -52,13 +52,6 @@ test:
only: only:
- master - 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: dockerize:
stage: dockerize stage: dockerize
tags: tags:
...@@ -70,3 +63,12 @@ dockerize: ...@@ -70,3 +63,12 @@ dockerize:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE . - docker build -t $CI_REGISTRY_IMAGE .
- docker push $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"'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment