finalazing pipline

This commit is contained in:
Mr Finchum 2025-01-21 19:37:57 +01:00
parent 474a588069
commit 4c0c891376
2 changed files with 10 additions and 4 deletions

View file

@ -12,19 +12,21 @@ gitversion:
stage: .pre stage: .pre
tags: tags:
- gitlab-org-docker - gitlab-org-docker
# rules: rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
build: build:
stage: build stage: build
image: python:3.9.21 image: python:3.9.21
tags: tags:
- gitlab-org-docker - gitlab-org-docker
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
needs: needs:
- job: gitversion - job: gitversion
artifacts: true artifacts: true
script: script:
- sed -i "s/0.0.1/${GitVersion_MajorMinorPatch}a${GitVersion_BuildMetaData}/" src/optima35/__init__.py - sed -i "s/0.0.1/${GitVersion_MajorMinorPatch}" src/optima35/__init__.py
- cat src/optima35/__init__.py - cat src/optima35/__init__.py
- python3 -m pip install build - python3 -m pip install build
- python3 -m build - python3 -m build
@ -38,6 +40,8 @@ publish:
image: python:3.9.21 image: python:3.9.21
tags: tags:
- gitlab-org-docker - gitlab-org-docker
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
variables: variables:
TWINE_USERNAME: "__token__" TWINE_USERNAME: "__token__"
TWINE_PASSWORD: $TWINE_API TWINE_PASSWORD: $TWINE_API

View file

@ -1,3 +1,5 @@
--- ---
mode: Mainline mode: Mainline
major-version-bump-message: "^(build|chore|ci|docs|feat|fix|patch|refactor|revert|style|test)(\\([\\w\\s-,/\\\\]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)" # noqa yaml[line-length]
minor-version-bump-message: "^(build|chore|ci|docs|feat|refactor|revert|style|test)(\\([\\w\\s-,/\\\\]*\\))?:"
patch-version-bump-message: "^(fix|patch)(\\([\\w\\s-,/\\\\]*\\))?:"