Skip to content
Snippets Groups Projects
Commit c6adecb4 authored by POLLET Vincent's avatar POLLET Vincent
Browse files

Merge branch 'simplify_CI' into 'main'

Remove useless job downloading dependencies files since base image already contains them

See merge request !4
parents 83a21571 9190fe96
No related branches found
No related tags found
1 merge request!4Remove useless job downloading dependencies files since base image already contains them
Pipeline #395310 passed
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment