60 lines
957 B
YAML
60 lines
957 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: golang:1.22
|
||
|
commands:
|
||
|
- go test ./internal/repository
|
||
|
- go build ./cmd/server.go
|
||
|
-
|
||
|
trigger:
|
||
|
event:
|
||
|
- pull_request
|