Commit 4c7ade72 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Distingue la publication de tags et de branches dans Gitlab.

parent f5342245
No related merge requests found
Showing with 12 additions and 4 deletions
+12 -4
......@@ -6,11 +6,19 @@ include:
ref: "3.0.1"
file: /php/packagist.yml
gitlab-composer:
.gitlab-composer:
stage: deploy
image: curlimages/curl
interruptible: false
script:
- 'curl --user "__token__:$CI_JOB_TOKEN" --data "tag=$CI_COMMIT_TAG" --data "branch=$CI_COMMIT_BRANCH" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/composer"'
gitlab-composer-tag:
extends: [.gitlab-composer]
script: 'curl --user "__token__:$CI_JOB_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__:$CI_JOB_TOKEN" --data "branch=$CI_COMMIT_BRANCH" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/composer"'
rules:
- if: '$CI_COMMIT_BRANCH || $CI_COMMIT_TAG'
- if: '$CI_COMMIT_BRANCH'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment