Commit 18fc7845 authored by 舒成's avatar 舒成

v2.1.1

parent 64c4b639
Pipeline #44613 passed with stage
platform: 10.11.92.34
clone:
git:
image: registry.cn-qingdao.aliyuncs.com/wod/devops-git:1.0
dns:
- 223.5.5.5
pipeline:
charts:
image: registry.cn-qingdao.aliyuncs.com/wod/alpine:3.12
pull: true
dns:
- 223.5.5.5
volumes:
- /data/downloads/k8s/charts/:/charts
environment:
- TGZ_TARGET=harbor-v2.1.1.tgz
commands:
- rm -rf .git
- tar -zcvf $TGZ_TARGET .
- mv $TGZ_TARGET /charts/$TGZ_TARGET
when:
branch:
- master
ansible-amd64:
image: registry.cn-qingdao.aliyuncs.com/wod/ansible-kubernetes-image:v1.20.2
pull: true
dns:
- 223.5.5.5
commands:
- cp -r ./ansible/main.yaml /etc/ansible/linux/main.yaml
- cd ansible
- >-
ansible-playbook /etc/ansible/linux/main.yaml
--extra-vars
'{
"TARGET_ARCH":"amd64",
"TARGET_VERSION":"v2.1.1"
}'
--extra-vars "@images.yaml"
when:
branch:
- master
ansible-arm64:
image: registry.cn-qingdao.aliyuncs.com/wod/ansible-kubernetes-image:v1.20.2
pull: true
dns:
- 223.5.5.5
commands:
- cp -r ./ansible/main.yaml /etc/ansible/linux/main.yaml
- cd ansible
- >-
ansible-playbook /etc/ansible/linux/main.yaml
--extra-vars
'{
"TARGET_ARCH":"arm64",
"TARGET_VERSION":"v2.1.1"
}'
--extra-vars "@images.yaml"
when:
branch:
- master
ansible-ppc64le:
image: registry.cn-qingdao.aliyuncs.com/wod/ansible-kubernetes-image:v1.20.2
pull: true
dns:
- 223.5.5.5
commands:
- cp -r ./ansible/main.yaml /etc/ansible/linux/main.yaml
- cd ansible
- >-
ansible-playbook /etc/ansible/linux/main.yaml
--extra-vars
'{
"TARGET_ARCH":"ppc64le",
"TARGET_VERSION":"v2.1.1"
}'
--extra-vars "@images.yaml"
when:
branch:
- master
\ No newline at end of file
IMAGES:
- repo: harbor-portal
tag: "v2.1.1"
- repo: harbor-core
tag: "v2.1.1"
- repo: harbor-jobservice
tag: "v2.1.1"
- repo: harbor-db
tag: "v2.1.1"
- repo: harbor-registryctl
tag: "v2.1.1"
- repo: harbor-chartmuseum
tag: "v2.1.1"
- repo: harbor-clair
tag: "v2.1.1"
- repo: harbor-clair-adapter
tag: "v2.1.1"
- repo: harbor-trivy-adapter
tag: "v2.1.1"
- repo: harbor-notary-server
tag: "v2.1.1"
- repo: harbor-notary-signer
tag: "v2.1.1"
- repo: registry
tag: "2.7.1"
- repo: redis
tag: "6.0.9"
\ No newline at end of file
- hosts: all
gather_facts: False
vars:
REGISTRY_DATA_PATH: '/data/downloads/k8s/registry/{{ TARGET_ARCH }}'
REGISTRY_DATA_FILE: "images-harbor-{{ TARGET_VERSION }}.tar.gz"
roles:
- role: wod.registry
- role: wod.registry-cache
CACHE_IMAGES: '{{ IMAGES }}'
- role: wod.tgz
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment