diff --git a/.drone.yml b/.drone.yml index 2c2b7dd..ed12efd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 + when: + event: + exclude: + - tag + depends_on: + - lint + - name: release image: goreleaser/goreleaser:latest volumes: @@ -28,10 +43,13 @@ 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 + event: + - tag depends_on: - lint