diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a801c44daebe4c65451ce34ef4f84bf4743dd87a..6db22a863ffcc89d42e3a5d11e4df61579b82201 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -238,29 +238,6 @@ permanent_tag_dev_test_image: - crane delete ${BASE_IMAGE_TEMP_LOCATION} -# This stage simply downloads the latest artifacts of the generate_pinned_env_files stage -# for the current branch and makes it available for later stage as artifacts -# This is usefull when the pipeline runs but the generate_pinned_env_files did not run (no changes, not 1st commit, etc.) -# gitlab rest API: https://docs.gitlab.com/ee/api/job_artifacts.html -# Note: curl from this job artifacts, not the one generating files, because this one is present in every pipeline while other is -# not there in pipeline with not changes, tags, etc. -download_pinned_dependencies: - stage: TestsDoc - image: curlimages/curl - rules: - - if: $CI_PIPELINE_SOURCE != "merge_request_event" - script: - - if [ -f "${PROD_PINNED_DEPENDENCIES_FILE}" ]; then echo "Artifact exists, doing nothing" && exit 0; fi - - echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_COMMIT_REF_NAME}/download?job=generate_pinned_env_files" - - 'curl --location --output artifacts.zip --header "JOB-TOKEN: $CI_JOB_TOKEN" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_COMMIT_REF_NAME}/download?job=download_pinned_dependencies"' - - unzip artifacts.zip - artifacts: - when: always # always provide artifact even if pipeline fails, to have it available for next pipeline - expire_in: 90 days - paths: - - ${PROD_PINNED_DEPENDENCIES_FILE} - - build_docker_image_latest: stage: DeployLatest variables: