Skip to content
Snippets Groups Projects
Commit f2ee46e5 authored by Thomas Schneider's avatar Thomas Schneider Committed by Thomas Schneider
Browse files

ci: wtf

parent 4b8e602d
No related branches found
No related tags found
No related merge requests found
Pipeline #3249 passed
......@@ -55,10 +55,12 @@ upload:
image: curlimages/curl:latest
needs:
- build
rules:
- if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH'
# rules:
# - if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH'
script:
- >-
for file in ${CI_PROJECT_NAME}-linux-amd64 ${CI_PROJECT_NAME}-linux-arm; do
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${file} ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_REF}/${file} || exit $? ;
echo ${file} ;
stat ${file} ;
curl --verbose --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${file} ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_REF_NAME}-${CI_COMMIT_REF}/${file} || exit $? ;
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment