From 9654018b778d7cf07dbe7c5e063ffc4acc8af186 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Thu, 21 Nov 2024 23:59:56 +0300 Subject: [PATCH 1/6] 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 -- 2.43.5 From 004bfb951ffdd118481b79c8555445a9cc0da37d Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 22 Nov 2024 00:05:56 +0300 Subject: [PATCH 2/6] Step names changes. --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ .drone.yml b/ .drone.yml index 78b5dae..910fad7 100644 --- a/ .drone.yml +++ b/ .drone.yml @@ -3,7 +3,7 @@ type: docker name: build steps: - - name: 'docker_build' + - name: 'docker-build' image: plugins/docker settings: dry_run: true @@ -20,7 +20,7 @@ type: docker name: publish steps: - - name: 'docker_publish' + - name: 'docker-publish' image: plugins/docker settings: username: -- 2.43.5 From f93c44221bf2b84b141157756c71cc1b3f752769 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 22 Nov 2024 00:09:45 +0300 Subject: [PATCH 3/6] Removing space (' ') from CI config file name. --- .drone.yml => .drone.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .drone.yml => .drone.yml (100%) diff --git a/ .drone.yml b/.drone.yml similarity index 100% rename from .drone.yml rename to .drone.yml -- 2.43.5 From aea2c75cfdc259d02ca24f4353d3e3980369163c Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 22 Nov 2024 00:13:34 +0300 Subject: [PATCH 4/6] More fixes. --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 910fad7..25dfe8b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,9 @@ steps: trigger: event: - pull_request - - push + branch: + exclude: + - master --- kind: pipeline -- 2.43.5 From d64a45db6fd1fe352184963e35284f155fb3ed0f Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 22 Nov 2024 00:14:25 +0300 Subject: [PATCH 5/6] More fixes. --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 25dfe8b..a5b90d9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: trigger: event: - - pull_request + - push branch: exclude: - master -- 2.43.5 From 2ba8637ff06b6bdda2233bada45e4f9755f8b570 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 22 Nov 2024 00:17:03 +0300 Subject: [PATCH 6/6] More fixes. --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index a5b90d9..86181ef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,8 @@ steps: - name: 'docker-build' image: plugins/docker settings: + repo: + from_secret: DOCKER_REPO dry_run: true purge: true -- 2.43.5