From 79998ea71cadb35382d4fde98ccb3f38e5e110a9 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Wed, 20 Feb 2019 10:39:19 +0100 Subject: [PATCH] refactored .drone.yml --- .drone.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 879d5fa..7cdcb60 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,7 +28,9 @@ pipeline: - ./build.sh when: branch: master - event: push + event: + - push + - tag build_mark2web_darwin: image: golang:latest @@ -40,7 +42,9 @@ pipeline: - ./build.sh when: branch: master - event: push + event: + - push + - tag build_mark2web_windows: image: golang:latest @@ -53,7 +57,9 @@ pipeline: - ./build.sh when: branch: master - event: push + event: + - push + - tag build_docker: image: docker @@ -64,7 +70,9 @@ pipeline: - /var/run/docker.sock:/var/run/docker.sock when: branch: master - event: push + event: + - push + - tag deploy_website: image: apairon/mark2web:latest @@ -73,13 +81,20 @@ pipeline: - /mark2web -in website -out html -create -logLevel debug when: branch: master - event: push + event: + - push + - tag prepare_release: image: apairon/mark2web:latest commands: - gzip dist/* - ls -la dist/ + when: + branch: master + event: + - push + - tag gitea_relase: image: plugins/gitea-release @@ -92,4 +107,6 @@ pipeline: - md5 - sha256 when: - event: tag \ No newline at end of file + branch: master + event: + - tag \ No newline at end of file