Fix build job not running on main or tag push
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
This commit is contained in:
@@ -27,8 +27,7 @@ envars:
|
|||||||
commit_check:
|
commit_check:
|
||||||
stage: test
|
stage: test
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_LABELS !~ /skip-ci/
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
- when: never
|
|
||||||
variables:
|
variables:
|
||||||
BADRX: '^(squash!)|(fixup!)'
|
BADRX: '^(squash!)|(fixup!)'
|
||||||
script: |
|
script: |
|
||||||
@@ -42,6 +41,10 @@ commit_check:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
variables:
|
variables:
|
||||||
BUILDAH_FORMAT: docker
|
BUILDAH_FORMAT: docker
|
||||||
BUILDAH_ISOLATION: chroot
|
BUILDAH_ISOLATION: chroot
|
||||||
|
|||||||
Reference in New Issue
Block a user