From a3fb69bfdf8e1c1e073a8f4c02ec275a35fa5ce2 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 11 Jun 2019 11:19:05 +0200 Subject: [PATCH] try it this way --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aecf714..2b9b8d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,7 @@ image: golang:latest +variables: + TOKEN_HEADER: "PRIVATE-TOKEN: $CI_BUILD_TOKEN" + build: script: - make @@ -9,7 +12,7 @@ build: release: script: - make - - "curl -H 'PRIVATE-TOKEN: $CI_BUILD_TOKEN' 'https://$CI_API_V4_URL/$CI_PROJECT_ID/releases'" + - curl -H "$TOKEN_HEADER" "https://$CI_API_V4_URL/$CI_PROJECT_ID/releases" artifacts: paths: - dist/*.tar.gz