From eb1f6e70aaeb50bc1e23715c2901bc9f462091a3 Mon Sep 17 00:00:00 2001 From: David Muck Date: Wed, 18 Oct 2023 15:33:23 +0200 Subject: [PATCH] publish --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..fe690fa --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +stages: + - package + +workflow: + rules: + # On commit on branch + - if: $CI_COMMIT_BRANCH + variables: + CI_DATA: "branch=${CI_COMMIT_BRANCH}" + # On tag + - if: $CI_COMMIT_TAG + variables: + CI_DATA: "tag=${CI_COMMIT_TAG}" + +package: + stage: package + script: + - apt update + - apt install curl -y + - 'curl --header "Job-Token: $CI_JOB_TOKEN" --data ${CI_DATA} "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/composer"'