| # |
| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| # |
| |
| --- |
| kind: pipeline |
| name: deploy-testing-environment-preview.1.0 |
| git_image: hub.d.cisdigital.cn/drone/git |
| platform: |
| os: linux |
| arch: amd64 |
| |
| steps: |
| - name: tag |
| image: hub.segma.tech/drone/drone-tag:v1.1 |
| environment: |
| TAG_FILE: .tags |
| |
| - name: build |
| image: hub.segma.tech/drone/maven-plugin:3.6.1-jdk-8-alpine |
| commands: |
| - mvn clean package -D maven.test.skip=true |
| |
| - name: docker |
| image: hub.segma.tech/drone/plugins/docker:19.03.8 |
| environment: |
| PLUGIN_DEBUG: true |
| settings: |
| dockerfile: ./Dockerfile |
| username: |
| from_secret: docker_username |
| password: |
| from_secret: docker_password |
| repo: hub.d.cisdigital.cn/iot-dacoo/iotdb |
| registry: hub.d.cisdigital.cn |
| insecure: true |
| |
| - name: deploy |
| image: hub.d.cisdigital.cn/drone/drone-paas-plugin:latest |
| settings: |
| application_id: 62 |
| application_cluster: dev_paas |
| application_deployment_id: 725 |
| application_deployment_replicas: 1 |
| application_deployment_image: hub.d.cisdigital.cn/iot-dacoo/iotdb |
| server_url: http://drone-paas-server.kube-drone:8080 |
| |
| trigger: |
| branch: |
| - master |
| - dev |
| event: |
| - push |