Prevent IDE jobs running when the ide code has no changes
This commit is contained in:
parent
b969672596
commit
e91661189b
@ -224,9 +224,10 @@ run-webide-unit-tests:
|
|||||||
- cd tools/webide/packages/server
|
- cd tools/webide/packages/server
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm run test
|
- npm run test
|
||||||
only:
|
rules:
|
||||||
changes:
|
- changes:
|
||||||
- tools/webide/**
|
- tools/webide/**
|
||||||
|
when: always
|
||||||
|
|
||||||
build-publish-ide-image:
|
build-publish-ide-image:
|
||||||
stage: build_and_deploy
|
stage: build_and_deploy
|
||||||
@ -246,7 +247,8 @@ build-publish-ide-image:
|
|||||||
.
|
.
|
||||||
- docker push "${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}"
|
- docker push "${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}"
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- changes:
|
||||||
|
- tools/webide/**
|
||||||
when: always
|
when: always
|
||||||
- if: '$CI_COMMIT_REF_NAME == "dev"'
|
- if: '$CI_COMMIT_REF_NAME == "dev"'
|
||||||
when: always
|
when: always
|
||||||
@ -260,7 +262,8 @@ run-webide-e2e-tests:
|
|||||||
- export WEBIDE_IMAGE="${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}"
|
- export WEBIDE_IMAGE="${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}"
|
||||||
- docker-compose run e2e
|
- docker-compose run e2e
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- changes:
|
||||||
|
- tools/webide/**
|
||||||
when: always
|
when: always
|
||||||
- if: '$CI_COMMIT_REF_NAME == "dev"'
|
- if: '$CI_COMMIT_REF_NAME == "dev"'
|
||||||
when: always
|
when: always
|
||||||
|
Loading…
Reference in New Issue
Block a user