From 02a15e9cfc6356e0e81e94546e639c533c7ba774 Mon Sep 17 00:00:00 2001 From: Paul Lhussiez Date: Mon, 16 Nov 2020 09:47:28 +0100 Subject: [PATCH] gcr --- .drone.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index af4cf1a..07327dc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,6 +21,23 @@ steps: - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.32.2 - ./bin/golangci-lint run + - name: gcr + image: plugins/gcr + settings: + repo: discord-fox-bot/fox + json_key: + from_secret: gcr_credentials + tags: + - latest + - "${DRONE_COMMIT_SHA}" + build_args: + - version="latest" + - build="${DRONE_COMMIT_SHA}" + when: + event: [push] + branch: [master] + + - name: telegram image: appleboy/drone-telegram settings: @@ -31,7 +48,7 @@ steps: message: > *{{repo.name}}* - [Build {{build.number}}]({{build.link}}) by {{commit.author}} {{#success build.status}}succeeded{{else}}failed{{/success}} in {{buildtime build.started}} + [Build {{build.number}}]({{build.link}}) by {{commit.author}} {{#success build.status}}succeeded{{else}}failed{{/success}} in {{since build.started}} `{{truncate commit.sha 8}}`: "{{commit.message}}"