UNPKG

@khs1994/tencent-ai

Version:
76 lines (67 loc) 1.52 kB
name: Test kind: pipeline type: docker clone: depth: 2 steps: - name: submodules image: plugins/git commands: - git config submodule.test/resource.url https://gitee.com/khs1994-php/resource - git submodule update --init --recursive --remote - name: install image: khs1994/node:git commands: - npm install --registry=https://registry.npm.taobao.org volumes: - name: npm_cache path: /root/.npm privileged: true - name: script image: node:12-alpine commands: - npm test environment: NODE_TENCENT_AI_APP_KEY: from_secret: node_tencent_ai_app_key NODE_TENCENT_AI_APP_ID: from_secret: node_tencent_ai_app_id - name: after_success image: khs1994/node:git environment: CODECOV_TOKEN: from_secret: codecov_token commands: - npm run codecov - rm -rf src/client/data.txt when: status: success - name: deploy image: plugins/npm settings: username: khs1994 # password: mypassword # token: mytoken email: khs1994@khs1994.com registry: https://registry.npmjs.org when: event: tag status: success environment: NPM_USERNAME: from_secret: npm_username NPM_PASSWORD: from_secret: npm_password NPM_TOKEN: from_secret: npm_token volumes: - name: npm_cache host: path: /data/drone/node/npm/cache trigger: branch: - master event: - tag - push - pull_request