This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-tsg-os-buildimage/.gitlab-ci.yml
2021-07-02 11:17:43 +08:00

200 lines
4.5 KiB
YAML

image: "git.mesalab.cn:7443/mesa_platform/build-env:master"
variables:
GIT_STRATEGY: "clone"
.build_tsg-buildimage:
script:
- env | sort
- yum -y install ansible pbzip2
- make DALIY_BUILD_VERSION=$DALIY_BUILD_VERSION
- chmod +x ./tools/upload.sh
- ./tools/upload.sh
tags:
- tsg-os-installer
feature_branch_build_7400_mcn0:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN0P01R01
DALIY_BUILD_VERSION: 1
except:
- tags
- /^dev-.*$/i
- /^rel-.*$/i
- /^update-.*$/i
feature_branch_build_7400_mcn123:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN123P01R01
DALIY_BUILD_VERSION: 1
except:
- tags
- /^dev-.*$/i
- /^rel-.*$/i
- /^update-.*$/i
feature_branch_build_9000:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 9000NPBP01R01
DALIY_BUILD_VERSION: 1
except:
- tags
- /^dev-.*$/i
- /^rel-.*$/i
- /^update-.*$/i
develop_build_7400_mcn0:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN0P01R01
UPLOAD_TO_FILE_REPO: 1
PULP3_FILE_REPO_NAME: tsg-os-images-develop
PULP3_FILE_DIST_NAME: tsg-os-images-develop
DALIY_BUILD_VERSION: 1
only:
- /^dev-.*$/i
develop_build_7400_mcn123:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN123P01R01
UPLOAD_TO_FILE_REPO: 1
PULP3_FILE_REPO_NAME: tsg-os-images-develop
PULP3_FILE_DIST_NAME: tsg-os-images-develop
DALIY_BUILD_VERSION: 1
only:
- /^dev-.*$/i
develop_build_9000:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 9000NPBP01R01
UPLOAD_TO_FILE_REPO: 1
PULP3_FILE_REPO_NAME: tsg-os-images-develop
PULP3_FILE_DIST_NAME: tsg-os-images-develop
DALIY_BUILD_VERSION: 1
only:
- /^dev-.*$/i
testing_build_7400_mcn0:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN0P01R01
UPLOAD_TO_FILE_REPO: 1
PULP3_FILE_REPO_NAME: tsg-os-images-testing
PULP3_FILE_DIST_NAME: tsg-os-images-testing
DALIY_BUILD_VERSION: 1
only:
- /^rel-.*$/i
testing_build_7400_mcn123:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN123P01R01
UPLOAD_TO_FILE_REPO: 1
PULP3_FILE_REPO_NAME: tsg-os-images-testing
PULP3_FILE_DIST_NAME: tsg-os-images-testing
DALIY_BUILD_VERSION: 1
only:
- /^rel-.*$/i
testing_build_9000:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 9000NPBP01R01
UPLOAD_TO_FILE_REPO: 1
PULP3_FILE_REPO_NAME: tsg-os-images-testing
PULP3_FILE_DIST_NAME: tsg-os-images-testing
DALIY_BUILD_VERSION: 1
only:
- /^rel-.*$/i
rc_build_7400_mcn0:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN0P01R01
UPLOAD_TO_FILE_REPO: 1
DALIY_BUILD_VERSION: 0
PULP3_FILE_REPO_NAME: tsg-os-images-rc
PULP3_FILE_DIST_NAME: tsg-os-images-rc
only:
- /^.*-rc.*$/i
rc_build_7400_mcn123:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN123P01R01
UPLOAD_TO_FILE_REPO: 1
DALIY_BUILD_VERSION: 0
PULP3_FILE_REPO_NAME: tsg-os-images-rc
PULP3_FILE_DIST_NAME: tsg-os-images-rc
only:
- /^.*-rc.*$/i
rc_build_9000:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 9000NPBP01R01
UPLOAD_TO_FILE_REPO: 1
DALIY_BUILD_VERSION: 0
PULP3_FILE_REPO_NAME: tsg-os-images-rc
PULP3_FILE_DIST_NAME: tsg-os-images-rc
only:
- /^.*-rc.*$/i
release_build_7400_mcn0:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN0P01R01
UPLOAD_TO_FILE_REPO: 1
DALIY_BUILD_VERSION: 0
PULP3_FILE_REPO_NAME: tsg-os-images-release
PULP3_FILE_DIST_NAME: tsg-os-images-release
only:
- tags
except:
- /^.*-rc.*$/i
release_build_7400_mcn123:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 7400MCN123P01R01
UPLOAD_TO_FILE_REPO: 1
DALIY_BUILD_VERSION: 0
PULP3_FILE_REPO_NAME: tsg-os-images-release
PULP3_FILE_DIST_NAME: tsg-os-images-release
only:
- tags
except:
- /^.*-rc.*$/i
release_build_9000:
stage: build
extends: .build_tsg-buildimage
variables:
PROFILE_LIST: 9000NPBP01R01
UPLOAD_TO_FILE_REPO: 1
DALIY_BUILD_VERSION: 0
PULP3_FILE_REPO_NAME: tsg-os-images-release
PULP3_FILE_DIST_NAME: tsg-os-images-release
only:
- tags
except:
- /^.*-rc.*$/i