kind: pipeline name: default steps: - name: restore cache image: drillster/drone-volume-cache settings: restore: true mount: - ./node_modules volumes: - name: cache path: /cache - name: npm install image: node:12 commands: - npm install - name: npm run build image: node:12 commands: - npm run build - name: rebuild cache image: drillster/drone-volume-cache settings: rebuild: true mount: - ./node_modules volumes: - name: cache path: /cache - name: archive plugin files image: alpine:3.9 commands: - apk add --no-cache zip - zip -9r ./plugin.zip *.js when: event: - tag - name: release plugin archive image: plugins/gitea-release settings: base_url: https://gitea.frontblock.me api_key: from_secret: release_token files: - plugin.zip checksum: - md5 when: event: - tag - name: deliver container image: plugins/docker settings: registry: registry.frontblock.me insecure: true repo: registry.frontblock.me/vendor/PluginManager tags: ${DRONE_BUILD_CREATED} - name: release container image: plugins/docker settings: repo: frontblockme/PluginManager tags: ${DRONE_TAG} username: frontblockme password: from_secret: docker_password when: event: - tag volumes: - name: cache host: path: /tmp