Update ci cd

This commit is contained in:
simonwt 2026-04-07 13:16:21 +01:00
parent 8624e5fd6b
commit b675a23de8

View file

@ -28,14 +28,15 @@ test:
publish: publish:
stage: publish stage: publish
only:
- master
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never when: never
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
# - if: '$CI_PIPELINE_SOURCE == "push"' # - if: '$CI_PIPELINE_SOURCE == "push"'
# when: never # Prevent pipeline run for push event # when: never # Prevent pipeline run for push event
- when: on_success - when: never
needs: needs:
- test - test
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER