Files
monolog-handlers/.gitlab-ci.yml
2024-09-30 20:56:51 -04:00

25 lines
459 B
YAML

stages:
- test
- deploy
unit-test:
stage: test
image: siteworxpro/composer
only:
- branches
script:
- composer install
- composer run unit
deploy:
stage: deploy
image: alpine:latest
only:
- tags
tags:
- build
script:
- apk add curl
- 'curl -iL --insecure --header "Job-Token: $CI_JOB_TOKEN" --data tag=${CI_COMMIT_TAG} "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/composer"'
environment: production