按分支定义不同变量

workflow:
  rules:
    - if: $CI_COMMIT_BRANCH == "java8-runtime-base"
      variables:
        CI_IMAGE_TAG: "base"
    - if: $CI_COMMIT_BRANCH == "java8-runtime-advance"
      variables:
        CI_IMAGE_TAG: "advance"
    - if: $CI_COMMIT_BRANCH == "java8-runtime-base"
      variables:
        CI_IMAGE_TAG: "base"
    - if: $CI_COMMIT_BRANCH == "java8-runtime-base"
      variables:
        CI_IMAGE_TAG: "base"
    - if: $CI_COMMIT_BRANCH == "java8-runtime-base"
      variables:
        CI_IMAGE_TAG: "base"
Copyright © weiliang 2021 all right reserved,powered by Gitbook本书发布时间: 2024-04-22 16:03:42

results matching ""

    No results matching ""