diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0fb8122..3b42eba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,9 @@ check-commitizen: GIT_STRATEGY: none script: - apk add --no-cache --upgrade py3-pip - - pip install -U commitizen + # Pass --break-system-packages since since this containers sole purpose is + # running 2 applications. If we get to advance this, implement a proper venv + - pip install --break-system-packages commitizen - cz check --message "$CI_COMMIT_MESSAGE" >/tmp/cz_check || true # why does it return 1 if its actually 0? - grep "successful" /tmp/cz_check # ugly hack to workaround the above issue rules: @@ -24,7 +26,9 @@ tag-to-release: GIT_STRATEGY: none script: - apk add --no-cache --upgrade git py3-pip - - pip install -U commitizen + # Pass --break-system-packages since since this containers sole purpose is + # running 2 applications. If we get to advance this, implement a proper venv + - pip install --break-system-packages -U commitizen - git clone "$CI_PROJECT_URL.git" - cd "$CI_PROJECT_NAME" - CHANGELOG=$(cz changelog "$CI_COMMIT_TAG" --dry-run | sed /^Invalid/d)