From 3ed1e504a2e5cfbd0a52acb9b732445ed7cff98f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@inrae.fr> Date: Tue, 25 Aug 2020 14:44:24 +0200 Subject: [PATCH] Corrige l'authentification des jobs composer. --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 239656f..9c1f9af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,12 +13,14 @@ include: gitlab-composer-tag: extends: [.gitlab-composer] - script: 'curl --user "___token___:$GITLAB_COMPOSER_TOKEN" --data "tag=$CI_COMMIT_TAG" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/composer"' + script: 'curl -fsSL --user "__token__:$GITLAB_COMPOSER_TOKEN" --data "tag=$CI_COMMIT_TAG" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/composer"' rules: - if: '$CI_COMMIT_TAG' gitlab-composer-branch: extends: [.gitlab-composer] - script: 'curl --user "___token___:$GITLAB_COMPOSER_TOKEN" --data "branch=$CI_COMMIT_BRANCH" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/composer"' + script: + - "set -x" + - 'curl -fsSL --user "__token__:$GITLAB_COMPOSER_TOKEN" --data "branch=$CI_COMMIT_BRANCH" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/composer"' rules: - if: '$CI_COMMIT_BRANCH' -- GitLab