kind: pipeline type: kubernetes name: testing node_selector: aisimu: dev-tag # kubectl label nodes ecs-7fd5-1118132 aisimu=dev-tag 给节点打标签 # kubectl get nodes --show-labels 查看节点标签 steps: - name: build image: composer:latest commands: - ls - composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ - composer install -v - name: deploy-push-images depends_on: - build image: plugins/docker pull: if-not-exists settings: repo: registry.cn-shanghai.aliyuncs.com/gong92-socl/hy-test-k8s registry: registry.cn-shanghai.aliyuncs.com insecure: true username: from_secret: aliyun_docker_name password: from_secret: aliyun_docker_password dockerfile: docker/Dockerfile trigger: # branch: # - develop event: # - tag - push