2023-06-12 17:37:40 -07:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build image
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2023-06-17 10:25:31 -07:00
|
|
|
repo: jtom38/newsbot-collector
|
2023-06-13 22:26:28 -07:00
|
|
|
username: jtom38
|
2023-06-17 10:25:31 -07:00
|
|
|
password:
|
|
|
|
from_secret: DockerPushPat
|
2023-06-12 17:37:40 -07:00
|
|
|
trigger:
|
|
|
|
branch:
|
2023-06-13 21:37:32 -07:00
|
|
|
include:
|
2023-06-17 10:25:31 -07:00
|
|
|
- main
|
|
|
|
- releases/*
|
2023-06-25 22:38:07 -07:00
|
|
|
ref:
|
|
|
|
include:
|
|
|
|
- refs/tags/**
|
2023-06-13 21:37:32 -07:00
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2023-06-12 17:37:40 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: compile
|
|
|
|
steps:
|
|
|
|
- name: Compile project
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:7.0.103
|
|
|
|
commands:
|
|
|
|
- dotnet restore
|
|
|
|
- dotnet build
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|