Skip to content

Commit

Permalink
Simplify job if
Browse files Browse the repository at this point in the history
  • Loading branch information
petrzpav committed May 9, 2023
1 parent 332aaaa commit e183513
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions gitlab-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ variables:
ACADEMY_DOCKER_IMAGE: ${ACADEMY_DEFAULT_DOCKER_IMAGE}
ACADEMY_CACHE: "../.academy-cache"
ACADEMY_EDITABLE: "*.*"
ACADEMY_DISTRIBUTE: manual
ACADEMY_EXECUTE: manual
ACADEMY_EVALUATE: manual

cache:
- key: academy-cache
Expand Down Expand Up @@ -135,9 +138,7 @@ distribute:
<<< "${users}"
fi
rules:
- if: '$ACADEMY_DISTRIBUTE == "always"'
when: always
- when: manual
- when: $ACADEMY_DISTRIBUTE
allow_failure: true

execute:
Expand Down Expand Up @@ -168,9 +169,7 @@ execute:
rules:
- if: $CI_COMMIT_BRANCH == "source"
when: manual
- if: '$ACADEMY_EXECUTE == "always"'
when: always
- when: manual
- when: $ACADEMY_EXECUTE
allow_failure: true

evaluate:
Expand Down Expand Up @@ -203,9 +202,7 @@ evaluate:
when: manual
- if: $CI_PIPELINE_IID == "1"
when: manual
- if: $ACADEMY_EVALUATE == "always"
when: always
- when: manual
- when: $ACADEMY_EVALUATE
allow_failure: true

meta:
Expand Down

0 comments on commit e183513

Please sign in to comment.