kind: pipeline name: default steps: - name: install image: node:12 commands: - npm install - name: build image: node:12 commands: - npm run build - name: push image: plugins/docker settings: registry: registry.frontblock.me insecure: true repo: registry.frontblock.me/vendor/admin tags: ${DRONE_COMMIT_SHA} - name: archive image: alpine:3.9 commands: - apk add --no-cache zip tar - mkdir dist - zip -9r ./dist/${DRONE_REPO_NAME}.zip static - tar -czf ./dist/${DRONE_REPO_NAME}.tar.gz static when: event: - tag - name: release gitea image: plugins/gitea-release settings: base_url: https://gitea.frontblock.me api_key: from_secret: release_token files: - dist/* checksum: - md5 - sha1 - sha256 - sha512 - adler32 - crc32 when: event: - tag - name: release docker image: plugins/docker settings: repo: vendor/admin tags: ${DRONE_TAG} username: frontblockme password: from_secret: docker_password when: event: - tag