kind: pipeline name: default type: docker steps: - name: build image: node:latest volumes: - name: build path: /build commands: - export VERSION="1.2.3" - echo $VERSION > /build/version.txt - echo "v$VERSION" > /build/release-version.txt - npm install - npm run build - cp -R dist /build/dist - name: package image: tystuyfzand/fpm volumes: - name: build path: /build commands: - export VERSION=`cat /build/version.txt` - chmod +x packaging/build-package.sh - packaging/build-package.sh - cd /build/dist && tar zcvf /build/arm-web.tgz . - rm -rf /build/dist - name: release image: tystuyfzand/drone-gitea-release volumes: - name: build path: /build settings: gitea_server: https://git.meow.tf tag_file: /build/release-version.txt title_file: /build/release-version.txt files: [ '/build/*' ] environment: PLUGIN_API_KEY: from_secret: gitea_token volumes: - name: build temp: {}