From 62c2c5e1d615e3fb87d5d40fed7e9f6e8770de4c Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sat, 5 Oct 2024 21:14:17 +0200 Subject: [PATCH] ci: add release flow --- .gitlab-ci.yml | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d9c958f..9c7dd41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,10 @@ include: - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml' +- project: unboundsoftware/ci-templates + file: Release.gitlab-ci.yml stages: - build -- prepare -- release variables: DOCKER_HOST: tcp://docker:2375/ @@ -19,33 +19,3 @@ build: - unset BUILDTOOLS_CONTENT - build - push - -prepare_release: - stage: prepare - image: - name: orhunp/git-cliff:latest - entrypoint: [ "" ] - variables: - GIT_STRATEGY: clone # clone entire repo instead of reusing workspace - GIT_DEPTH: 0 # avoid shallow clone to give cliff all the info it needs - script: - - git-cliff --current > CHANGELOG.md - artifacts: - paths: - - CHANGELOG.md - rules: - - if: $CI_COMMIT_TAG - -release: - image: registry.gitlab.com/gitlab-org/release-cli:latest - stage: release - needs: - - job: prepare_release - artifacts: true - script: - - echo "Running release_job for $TAG" - release: - tag_name: '$CI_COMMIT_TAG' - description: ./CHANGELOG.md - rules: - - if: $CI_COMMIT_TAG