Skip to content
Snippets Groups Projects
Commit 7eaed303 authored by Frank Baier's avatar Frank Baier
Browse files

Update gitlab-ci-mkp.yml

parent d9114934
No related branches found
No related tags found
No related merge requests found
stages:
- build
- upload
- release
variables:
......@@ -21,6 +22,24 @@ build:
paths:
- dist/*.mkp
upload:
stage: upload
image: curlimages/curl:latest
tags:
- global-runner
rules:
- if: $CI_COMMIT_TAG
needs:
- job: build
artifacts: true
script:
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
--upload-file dist/${CHECKMK_PLUGIN_FILENAME} "${PACKAGE_REGISTRY_URL}/${CHECKMK_PLUGIN_FILENAME}"
- glab release create $CI_COMMIT_TAG -T $CI_COMMIT_TAG --notes "${CI_COMMIT_TAG_MESSAGE}" \
"./dist/${CHECKMK_PLUGIN_FILENAME}#${CHECKMK_PLUGIN_FILENAME}#package"
release_job:
image: gitlab/glab:latest
stage: release
......@@ -31,7 +50,9 @@ release_job:
needs:
- job: build
artifacts: true
script:
- job: upload
artifacts: true
script:
- glab config set check_update false --global
- glab auth login --job-token $CI_JOB_TOKEN --hostname $CI_SERVER_HOST --api-protocol $CI_SERVER_PROTOCOL
- GITLAB_HOST=$CI_SERVER_URL glab release list -R $CI_PROJECT_PATH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment