This repository has been archived on 2026-03-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
pre-commit-node/.gitlab-ci.yml
T
2023-06-08 16:04:56 +02:00

49 lines
916 B
YAML

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:
image: node:18
stage: prepare
before_script:
- npm install -g conventional-changelog-cli
script:
- conventional-changelog -p conventionalcommits > ./release.description
artifacts:
paths:
- release.description
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: ./release.description
rules:
- if: $CI_COMMIT_TAG