From e7385cd7f18b0771f20f4f593830075e9ad41f18 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Tue, 22 Aug 2017 19:09:16 +0200 Subject: [PATCH] Changes for latest DroneCI --- .drone.yml | 28 ++++++++++++++++++++++------ .drone.yml.sig | 1 - 2 files changed, 22 insertions(+), 7 deletions(-) delete mode 100644 .drone.yml.sig diff --git a/.drone.yml b/.drone.yml index 1101b83..54b083c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,17 @@ +workspace: + base: /srv/app + path: src + +clone: + git: + image: plugins/git:1 + depth: 50 + tags: true + pipeline: build: - image: node:8.1.1 + image: webhippie/nodejs:latest + pull: true commands: - yarn install - yarn run clean @@ -8,7 +19,10 @@ pipeline: - yarn run release release: - image: plugins/s3 + image: plugins/s3:1 + pull: true + secrets: [ s3_access_key, s3_secret_key ] + endpoint: https://storage.gitea.io path_style: true strip_prefix: dist/ source: dist/master.tar.gz @@ -18,7 +32,9 @@ pipeline: branch: [ master ] trigger: - image: plugins/downstream + image: plugins/downstream:1 + pull: true + secrets: [ downstream_token ] server: https://drone.gitea.io repositories: - go-gitea/website @@ -30,9 +46,9 @@ pipeline: branch: [ master ] discord: - image: appleboy/drone-discord - webhook_id: ${WEBHOOK_ID} - webhook_token: ${WEBHOOK_TOKEN} + image: appleboy/drone-discord:1.0.0 + pull: true + secrets: [ discord_webhook_id, discord_webhook_token ] when: event: [ push, tag, pull_request ] status: [ changed, failure ] diff --git a/.drone.yml.sig b/.drone.yml.sig deleted file mode 100644 index fea3a2d..0000000 --- a/.drone.yml.sig +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogbm9kZTo4LjEuMQogICAgY29tbWFuZHM6CiAgICAgIC0geWFybiBpbnN0YWxsCiAgICAgIC0geWFybiBydW4gY2xlYW4KICAgICAgLSB5YXJuIHJ1biBidWlsZAogICAgICAtIHlhcm4gcnVuIHJ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