diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae9196f..4082111 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,8 @@ +variables: + PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/scim" + EXTRA_DESCRIPTION: "" + SCIM_FILE: scim_${CI_COMMIT_TAG}.zip + stages: - package - upload @@ -21,8 +26,6 @@ upload: image: curlimages/curl rules: - if: $CI_COMMIT_TAG - variables: - SCIM_FILE: scim_${CI_COMMIT_TAG}.zip script: - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${SCIM_FILE}" "${PACKAGE_REGISTRY_URL}/${SCIM_FILE}"' needs: @@ -34,9 +37,6 @@ release_job: image: registry.gitlab.com/gitlab-org/release-cli:latest rules: - if: $CI_COMMIT_TAG - variables: - SCIM_FILE: scim_${CI_COMMIT_TAG}.zip - EXTRA_DESCRIPTION: "" script: - echo "running release_job" release: