commit 697f517260c15e8106da88693736d7309cc18c8e Author: Joakim Olsson Date: Tue Jan 31 19:45:01 2023 +0100 feat: initial version diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ffd8b04 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0440287 --- /dev/null +++ b/Dockerfile @@ -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