From 9654018b778d7cf07dbe7c5e063ffc4acc8af186 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Thu, 21 Nov 2024 23:59:56 +0300 Subject: [PATCH] Using triggers for pipelines. --- .drone.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/ .drone.yml b/ .drone.yml index 33a8c29..78b5dae 100644 --- a/ .drone.yml +++ b/ .drone.yml @@ -1,25 +1,26 @@ kind: pipeline type: docker -name: build-pr +name: build steps: - - name: build + - name: 'docker_build' image: plugins/docker settings: dry_run: true purge: true - when: - event: - - pull_request - - push + +trigger: + event: + - pull_request + - push --- kind: pipeline type: docker -name: build-and-publish +name: publish steps: - - name: publish + - name: 'docker_publish' image: plugins/docker settings: username: @@ -31,6 +32,6 @@ steps: tags: - ${DRONE_TAG} - latest - when: - event: - - tag \ No newline at end of file +trigger: + event: + - tag \ No newline at end of file