61 lines
954 B
YAML
61 lines
954 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: go-auth-ci
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
- develop
|
|
event:
|
|
- push
|
|
- pull_request
|
|
|
|
environment:
|
|
GOPRIVATE: git.beatrice.wtf/panic.haus/*
|
|
GONOSUMDB: git.beatrice.wtf/panic.haus/*
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang:1.26
|
|
commands:
|
|
- go mod download
|
|
- go test ./... -count=1
|
|
|
|
- name: build
|
|
image: golang:1.26
|
|
commands:
|
|
- go build ./...
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: go-auth-release
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
ref:
|
|
- refs/tags/v*
|
|
|
|
environment:
|
|
GOPRIVATE: git.beatrice.wtf/panic.haus/*
|
|
GONOSUMDB: git.beatrice.wtf/panic.haus/*
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang:1.26
|
|
commands:
|
|
- go mod download
|
|
- go test ./... -count=1
|
|
|
|
- name: build
|
|
image: golang:1.26
|
|
commands:
|
|
- go build ./...
|
|
|
|
- name: warm-proxy
|
|
image: golang:1.26
|
|
commands:
|
|
- go list -m git.beatrice.wtf/panic.haus/go-auth@${DRONE_TAG}
|