feat: initial commit

This commit is contained in:
2023-01-13 10:40:51 +01:00
commit a424b2b202
2 changed files with 57 additions and 0 deletions
+48
View File
@@ -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
+9
View File
@@ -0,0 +1,9 @@
FROM golang:1.19
RUN apt update && \
apt install -y python3 python3-pip ruby git && \
rm -rf /var/lib/apt/lists/* && \
go install github.com/lietu/go-pre-commit@latest && \
go install golang.org/x/tools/cmd/goimports@latest && \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 && \
pip install pre-commit