This commit is contained in:
Jerry Yan 2020-12-22 09:54:32 +08:00
parent 89470252e7
commit 1e0a82eade

View File

@ -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"