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: