Skip to content
Snippets Groups Projects
Commit 8d2175c0 authored by ewbo4360's avatar ewbo4360 :sunflower:
Browse files

trying to patch the artifact publishing: adapting url to case without version...

trying to patch the artifact publishing: adapting url to case without version but only with associated commit
parent dbc8d136
No related branches found
No related tags found
No related merge requests found
Pipeline #74558 passed
......@@ -85,7 +85,8 @@
artifacts:
paths:
- ./artifacts # Publish the built artifacts
expire_in: 300 sec
# expire_in: 300 sec
expire_in: 1 week
cache:
paths:
- output/full #save cache for later jobs
......@@ -135,11 +136,13 @@
# - cp -r output/full ./artifacts # Ensure the artifacts are included for deployment
- |
for artifact in ./artifacts/*; do
artifact_name=$(basename "${artifact}")
echo "Uploading ${artifact_name}..."
chmod +x ${artifact}
curl \
--header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
--upload-file ${artifact} \
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/artifacts/${version}/"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/artifacts/${CI_COMMIT_REF_NAME}/${artifact}"
done
environment: production
cache:
......
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