release only on master branch
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Marvin Steadfast 2020-12-09 08:17:23 +01:00
parent 13dc7b8945
commit 43adc52de6

View File

@ -13,6 +13,21 @@ steps:
commands:
- make lint
- name: build
image: goreleaser/goreleaser:latest
volumes:
- name: dockersock
path: /var/run
environment:
commands:
- goreleaser build --rm-dist --snapshot
trigger:
event:
exclude:
- tag
depends_on:
- lint
- name: release
image: goreleaser/goreleaser:latest
volumes:
@ -28,10 +43,14 @@ steps:
DOCKER_REGISTRY: quay.io
commands:
- sleep 5
- echo $DOCKER_PASSWORD | docker login $DOCKER_REGISTRY -u $DOCKER_USERNAME --password-stdin
- >
echo $DOCKER_PASSWORD |
docker login $DOCKER_REGISTRY -u $DOCKER_USERNAME --password-stdin
- goreleaser release
when:
event: tag
trigger:
event:
- tag
branch: master
depends_on:
- lint