Skip to content

Commit

Permalink
CI: Add "publish-tag" (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Oct 8, 2021
1 parent 29fa7a0 commit 6cc20f5
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 6cc20f5

Please sign in to comment.