include: - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml' stages: - build - prepare - release variables: DOCKER_HOST: tcp://docker:2375/ image: buildtool/build-tools:${BUILDTOOLS_VERSION} build: stage: build services: - docker:${DOCKER_DIND_VERSION} script: - 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