From 1e0a82eaded578245aa9cd977b8c689a31b25943 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 22 Dec 2020 09:54:32 +0800 Subject: [PATCH] Tags --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0cec8ba..a69d4cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - test + - deploy unitTest: image: edbizarro/gitlab-ci-pipeline-php:7.4-alpine @@ -17,3 +18,11 @@ unitTest: junit: - phpunit-report.xml coverage: '/^\s*Lines:\s*\d+.\d+\%/' + +composerPublish: + image: curlimages/curl:latest + only: + - tags + stage: deploy + script: + - curl --data "tag=${CI_COMMIT_TAG}" "http://__token__:${CI_JOB_TOKEN}@gitlab/api/v4/projects/${CI_PROJECT_ID}/packages/composer" \ No newline at end of file