From 6947d928ec70c7deacf660632b37fcea0c436b7d Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Tue, 27 Dec 2022 13:45:31 +0100 Subject: [PATCH] .gitlab-ci.yml - fixed artifact upload with access token --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8efda48..1734ea1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -143,4 +143,5 @@ deploy:debian: # https://docs.gitlab.com/14.3/ee/user/packages/debian_repository/index.html - URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/debian/${EXPORT_NAME}" - 'echo "URL: ${URL}"' - - 'curl --request PUT --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${EXPORT_NAME} ${URL}' + #- 'curl --request PUT --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${EXPORT_NAME} ${URL}' + - 'curl --request PUT --upload-file ${EXPORT_NAME} https://${PRIVATE_WRITE_PACKAGE_REGISTRY_USER}:${PRIVATE_WRITE_PACKAGE_REGISTRY_TOKEN}@git.collinwebdesigns.de/api/v4/projects/${CI_PROJECT_ID}/packages/debian/${EXPORT_NAME}'