From 6af7fb75be8b0f31a329132dcc8900a8a3045480 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 10 Jul 2023 17:58:32 -0700 Subject: [PATCH 1/2] Split out the jobs to attempt to get things to run correctly again. --- .drone.yml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 551015a..7e2b2d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,10 @@ --- kind: pipeline type: docker -name: build +name: buildMasterImage steps: - - name: build image + - name: buildMasterImage image: plugins/docker settings: repo: jtom38/newsbot-collector @@ -23,10 +23,36 @@ trigger: exclude: - pull_request + --- kind: pipeline type: docker -name: compile +name: buildReleaseImage + +steps: + - name: buildReleaseImage + image: plugins/docker + settings: + repo: jtom38/newsbot-collector + username: jtom38 + password: + from_secret: DockerPushPat +trigger: + branch: + include: + - releases/* + ref: + include: + - refs/tags/** + event: + exclude: + - pull_request + + +--- +kind: pipeline +type: docker +name: PullRequestCompileTest steps: - name: Compile project image: mcr.microsoft.com/dotnet/sdk:7.0.103 From 788124dfa04a9f31948101def04de4db759fe995 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 10 Jul 2023 18:01:31 -0700 Subject: [PATCH 2/2] changed the name --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7e2b2d6..0fafd24 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,10 @@ --- kind: pipeline type: docker -name: buildMasterImage +name: buildLatestImage steps: - - name: buildMasterImage + - name: buildLatestImage image: plugins/docker settings: repo: jtom38/newsbot-collector