Skip to content
Snippets Groups Projects
Commit 8d7f9e1e authored by ale's avatar ale
Browse files

Use Gitlab CI job tokens for authentication

parent 223758eb
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,8 @@ stages:
variables:
TAG: $CI_COMMIT_TAG
AUTH: "__token__:$REGISTRY_TOKEN"
REGISTRY_URL: "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/composer"
AUTH: "gitlab-ci-token:${CI_JOB_TOKEN}"
REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/composer"
release:
stage: release
......@@ -14,4 +14,4 @@ release:
- branches
image: curlimages/curl
script:
- curl -s -S --fail --data tag=$TAG -u $AUTH $REGISTRY_URL
\ No newline at end of file
- curl -s -S --fail --data tag=$TAG -u $AUTH $REGISTRY_URL
  • ale @ale

    mentioned in commit 0003f5b2

    ·

    mentioned in commit 0003f5b2

    Toggle commit list
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