Skip to content

Commit

Permalink
Remove redundant pipeline steps
Browse files Browse the repository at this point in the history
  • Loading branch information
aktur committed Feb 1, 2021
1 parent 560b267 commit 91bd990
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ build-deployment-manager-swarm:
- docker buildx build --push --platform $PLATFORM -t openremote/deployment:latest deployment
- docker buildx build --push --platform $PLATFORM -t openremote/manager-swarm:latest -f manager/build/install/manager/swarm.Dockerfile manager/build/install/manager
rules:
- if: $RUN_TESTS == "true"
when: never
- when: never
- if: $CI_COMMIT_MESSAGE !~ /skip-build/
when: manual
retry:
Expand All @@ -123,8 +122,7 @@ build-keycloak-postgresql-proxy:
- docker buildx build --push --platform linux/amd64 -t openremote/keycloak:latest keycloak
- docker buildx build --push --platform $PLATFORM -t openremote/postgresql:latest postgresql
rules:
- if: $RUN_TESTS == "true"
when: never
- when: never
- if: $CI_COMMIT_MESSAGE =~ /skip-build/
when: never
- changes:
Expand Down Expand Up @@ -228,8 +226,7 @@ email failed build:
stage: build_fail
<<: *notify_email
rules:
- if: $RUN_TESTS == "true"
when: never
- when: never
- if: $CI_COMMIT_MESSAGE =~ /deploy-demo/
when: on_failure
- if: $CI_COMMIT_MESSAGE =~ /skip-build/
Expand All @@ -240,8 +237,7 @@ build FAILED:
stage: build_fail
<<: *notify_whatsapp
rules:
- if: $RUN_TESTS == "true"
when: never
- when: never
- if: $CI_COMMIT_MESSAGE =~ /deploy-demo/
when: on_failure
- if: $CI_COMMIT_MESSAGE =~ /skip-build/
Expand All @@ -261,6 +257,7 @@ test-master:
- docker run --network host -v $(pwd):/or "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
/bin/sh -c "./gradlew clean test"
rules:
- when: never
- if: $RUN_TESTS == "true"
when: never
- if: $CI_COMMIT_MESSAGE !~ /skip-test/
Expand Down Expand Up @@ -315,6 +312,7 @@ email failed tests:
- export STAGE='tests'
<<: *notify_email
rules:
- when: never
- if: $RUN_TESTS == "true"
when: never
- if: $CI_COMMIT_MESSAGE !~ /skip-test/
Expand All @@ -325,6 +323,7 @@ test FAILED:
needs: ["test-master"]
<<: *notify_whatsapp
rules:
- when: never
- if: $RUN_TESTS == "true"
when: never
- if: $CI_COMMIT_MESSAGE !~ /skip-test/
Expand Down

0 comments on commit 91bd990

Please sign in to comment.