From 6cc20f5839686a78832fa29cdcd60f79ddeaab81 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 8 Oct 2021 18:57:23 +0200 Subject: [PATCH] CI: Add "publish-tag" (#10) --- .woodpecker.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 413e73d9..aa03d8f0 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,12 +4,14 @@ clone: pipeline: lint: + group: test image: golang:1.16 commands: - make vet - make formatcheck test: + group: test image: golang:1.16 commands: - make test @@ -28,12 +30,21 @@ pipeline: when: event: pull_request - publish: + publish-next: image: plugins/docker dockerfile: docker/Dockerfile.linux.amd64 repo: woodpeckerci/plugin-s3 - tags: latest - secrets: [ docker_username, docker_password ] + tags: next + secrets: [docker_username, docker_password] when: branch: master event: push + + publish-tag: + image: plugins/docker + dockerfile: docker/Dockerfile.linux.amd64 + repo: woodpeckerci/plugin-s3 + tags: [latest, "${DRONE_TAG}"] + secrets: [docker_username, docker_password] + when: + event: tag