diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..209e0b2a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,56 @@ +workspace: + base: /srv/app + +clone: + git: + image: plugins/git + depth: 50 + tags: true + + build: + image: node + pull: true + group: build-static + commands: + - npm install + - npm run lint + - npm run build + when: + event: [push, tag, pull_request] + + static: + image: karalabe/xgo-latest:latest + pull: true + commands: + - cd dist + - zip -r ../vikunja-frontend.zip * + - cd .. + when: + event: [tag, push] + + # Push the releases to our pseudo-s3-bucket + release: + image: plugins/s3:1 + pull: true + secrets: [ aws_access_key_id, aws_secret_access_key ] + bucket: vikunja + endpoint: https://storage.kolaente.de + path_style: true + source: vikunja-frontend.zip + target: /${DRONE_TAG##v} + when: + event: [ tag ] + + release: + image: plugins/s3:1 + pull: true + secrets: [ aws_access_key_id, aws_secret_access_key ] + bucket: vikunja + endpoint: https://storage.kolaente.de + path_style: true + source: vikunja-frontend.zip + target: /master + when: + event: [ push ] + branch: [ master ] + diff --git a/package-lock.json b/package-lock.json index 572d0a41..e0177b4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5218,12 +5218,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5238,17 +5240,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -5365,7 +5370,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -5377,6 +5383,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -5391,6 +5398,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -5398,12 +5406,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -5422,6 +5432,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -5502,7 +5513,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -5514,6 +5526,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -5635,6 +5648,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",