Newsbot.Collector/.drone.yml
James Tombleson 558f9d352c
All checks were successful
continuous-integration/drone/pr Build is passing
Updating CI to not build latest on a pr.
2023-07-14 22:01:13 -07:00

60 lines
949 B
YAML

---
kind: pipeline
type: docker
name: buildLatestImage
steps:
- name: buildLatestImage
image: plugins/docker
settings:
repo: jtom38/newsbot-collector
username: jtom38
password:
from_secret: DockerPushPat
trigger:
branch:
include:
- main
event:
exclude:
- pull_request
---
kind: pipeline
type: docker
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
commands:
- dotnet restore
- dotnet build
trigger:
event:
- pull_request