feat: initial version
This commit is contained in:
@@ -0,0 +1,48 @@
|
|||||||
|
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:dind
|
||||||
|
script:
|
||||||
|
- unset BUILDTOOLS_CONTENT
|
||||||
|
- build
|
||||||
|
- push
|
||||||
|
|
||||||
|
prepare_release:
|
||||||
|
image: node:18
|
||||||
|
stage: prepare
|
||||||
|
before_script:
|
||||||
|
- npm install -g conventional-changelog-cli
|
||||||
|
script:
|
||||||
|
- echo "DESCRIPTION=$(conventional-changelog -p conventionalcommits)" > variables.env
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
dotenv: variables.env
|
||||||
|
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: '$DESCRIPTION'
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
FROM node:16
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y python3 python3-pip ruby git && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
pip3 install pre-commit
|
||||||
Reference in New Issue
Block a user