summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-07-03 13:03:11 +0200
committerDaniel Weipert <code@drogueronin.de>2021-07-03 13:03:11 +0200
commit94728b6145ef95bc67bcd09fd8397dc8510be87d (patch)
treee7a67dcbf5e7959457aae17ce97c6151ae5fe1d9
parent665170f086995ec85b47b9c562700a41293236a0 (diff)
Modifies CI to only trigger for tags
-rw-r--r--.gitlab-ci.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 14f203f..a44c85f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ build:
stage: build
image: edbizarro/gitlab-ci-pipeline-php:8.0-alpine
only:
- - main
+ - tags
script:
- composer install --prefer-dist --no-ansi --no-interaction --no-progress
@@ -24,7 +24,7 @@ deploy:
- job: build
artifacts: true
only:
- - main
+ - tags
script:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/docker-compose.yml "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/docker-compose.yml/$(date +"%Y-%m-%d").$CI_COMMIT_SHORT_SHA/docker-compose.yml"'