diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..58acb50 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,42 @@ +kind: pipeline +name: default +type: docker + +steps: + - name: build + image: node:latest + volumes: + - name: build + path: /build + commands: + - echo "v1.2.0" > /build/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` + - 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/version.txt + title_file: /build/version.txt + files: [ '/build/*' ] + environment: + PLUGIN_API_KEY: + from_secret: gitea_token + +volumes: + - name: build + temp: {} diff --git a/.gitignore b/.gitignore index 1622bc4..10087f8 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ yarn-error.log* *.ntvs* *.njsproj *.sln +*.iml + +package-lock.json diff --git a/packaging/build-package.sh b/packaging/build-package.sh index cdc055e..b26a679 100644 --- a/packaging/build-package.sh +++ b/packaging/build-package.sh @@ -1,5 +1,4 @@ -mkdir -p out || true -fpm -s dir -t deb -p out/arm-web_$VERSION.deb \ +fpm -s dir -t deb -p /build/arm-web_$VERSION.deb \ -n arm-web -v $VERSION \ --deb-priority optional --force \ --deb-compression bzip2 \ @@ -8,4 +7,4 @@ fpm -s dir -t deb -p out/arm-web_$VERSION.deb \ --depends nginx \ --url "https://meow.tf" \ packaging/arm.conf=/etc/nginx/conf.d/arm.conf \ - dist/=/var/www/arm-web + /build/dist=/var/lib/arm/web diff --git a/src/components/Status.vue b/src/components/Status.vue index 1c96b3e..6ea8ef7 100644 --- a/src/components/Status.vue +++ b/src/components/Status.vue @@ -1,5 +1,5 @@