Commit 787a9eb2 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Migra only/except a rules plantillas ya revisadas

parent 7ec8fe65
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -24,10 +24,12 @@ lint-dockerfile:
  script:
    - docker run --rm -i ${LINT_IMAGE_NAME}:${LINT_IMAGE_TAG} < ${DOCKERFILE_PATH}
  allow_failure: true
  only:
    - branches
  except:
    - schedules
  rules:
    - if: $CI_MERGE_REQUEST_ID ||
          $CI_COMMIT_TAG ||
          $CI_PIPELINE_SOURCE == "schedule"
      when: never
    - if: $CI_COMMIT_BRANCH

container_scanning:
  stage: post-package
+15 −11
Original line number Diff line number Diff line
@@ -12,11 +12,13 @@ include:
    DD_IMAGE_TAG: ${CI_COMMIT_TAG}

.deploy-support-branch: &deploy-support-branch
  only:
    - branches
  except:
    - master
    - schedules
  rules:
    - if: $CI_MERGE_REQUEST_ID ||
          $CI_COMMIT_TAG ||
          $CI_PIPELINE_SOURCE == "schedule" ||
          $CI_COMMIT_BRANCH == "master"
      when: never
    - if: $CI_COMMIT_BRANCH

deploy-commands-support-branch-development:
  extends: .deploy-commands-development
@@ -31,10 +33,12 @@ deploy-view-support-branch-development:
  <<: *deploy-support-branch

.deploy-stable-branch: &deploy-stable-branch
  only:
    - master
  except:
    - schedules
  rules:
    - if: $CI_MERGE_REQUEST_ID ||
          $CI_COMMIT_TAG ||
          $CI_PIPELINE_SOURCE == "schedule"
      when: never
    - if: $CI_COMMIT_BRANCH == "master"

deploy-commands-stable-branch-development:
  extends: .deploy-commands-development
@@ -61,8 +65,8 @@ deploy-view-stable-branch-production:
  <<: *deploy-stable-branch

.deploy-tag: &deploy-tag
  only:
    - tags
  rules:
    - if: $CI_COMMIT_TAG

deploy-commands-tag-development:
  extends: .deploy-commands-development
+15 −11
Original line number Diff line number Diff line
@@ -2,21 +2,25 @@ include:
  - local: '/_deployment.yml'

.deploy-support-branch: &deploy-support-branch
  only:
    - branches
  except:
    - master
    - schedules
  rules:
    - if: $CI_MERGE_REQUEST_ID ||
          $CI_COMMIT_TAG ||
          $CI_PIPELINE_SOURCE == "schedule" ||
          $CI_COMMIT_BRANCH == "master"
      when: never
    - if: $CI_COMMIT_BRANCH

deploy-support-branch-development:
  extends: .deploy-development
  <<: *deploy-support-branch

.deploy-stable-branch: &deploy-stable-branch
  only:
    - master
  except:
    - schedules
  rules:
    - if: $CI_MERGE_REQUEST_ID ||
          $CI_COMMIT_TAG ||
          $CI_PIPELINE_SOURCE == "schedule"
      when: never
    - if: $CI_COMMIT_BRANCH == "master"

deploy-stable-branch-development:
  extends: .deploy-development
@@ -27,8 +31,8 @@ deploy-stable-branch-production:
  <<: *deploy-stable-branch

.deploy-tag: &deploy-tag
  only:
    - tags
  rules:
    - if: $CI_COMMIT_TAG

deploy-tag-development:
  extends: .deploy-development
+2 −2
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@
    REGISTRY_PASS: ${CI_DEPLOY_PASSWORD}
    SERVICE: ${CI_PROJECT_NAME}_${CI_PROJECT_NAME}
  script: relaunch
  only:
    - schedules
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"

scheduled-run-development:
  extends: .scheduled-run
+14 −12
Original line number Diff line number Diff line
@@ -4,23 +4,25 @@ include:

docker-build-support-branch:
  extends: .docker-build
  only:
    - branches
    - tags
  except:
    - master
    - schedules
  rules:
    - if: $CI_MERGE_REQUEST_ID ||
          $CI_PIPELINE_SOURCE == "schedule" ||
          $CI_COMMIT_BRANCH == "master"
      when: never
    - if: $CI_COMMIT_BRANCH || $CI_COMMIT_TAG

docker-build-stable-branch:
  extends: .docker-build
  only:
    - master
  except:
    - schedules
  rules:
    - if: $CI_MERGE_REQUEST_ID ||
          $CI_COMMIT_TAG ||
          $CI_PIPELINE_SOURCE == "schedule"
      when: never
    - if: $CI_COMMIT_BRANCH == "master"

.docker-tag-context: &docker-tag-context
  only:
    - tags
  rules:
    - if: $CI_COMMIT_TAG

docker-tag-gitlab:
  extends: .docker-tag-gitlab