From e9cab0e5c56abba34667565c7a420531bb2bb2a7 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 12 Aug 2021 03:49:24 +0200 Subject: [PATCH] Deploy binary on s3 --- .drone.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.drone.yml b/.drone.yml index 11f7b22..63d61b1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,6 +15,19 @@ steps: - go get -d -v - go build -v +- name: deploy binary + image: plugins/s3 + settings: + endpoint: https://s3.nemunai.re + path_style: true + bucket: linky2influx + access_key: + from_secret: s3_access_key + secret_key: + from_secret: s3_secret_key + source: linky2influx + target: /${DRONE_BRANCH//\//-}/${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + - name: publish image: plugins/docker settings: @@ -44,6 +57,19 @@ steps: - go vet -v - go build -v +- name: deploy binary + image: plugins/s3 + settings: + endpoint: https://s3.nemunai.re + path_style: true + bucket: linky2influx + access_key: + from_secret: s3_access_key + secret_key: + from_secret: s3_secret_key + source: linky2influx + target: /${DRONE_BRANCH//\//-}/${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + - name: publish image: plugins/docker settings: