38 lines
621 B
YAML
38 lines
621 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: go-auth
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
- tag
|
|
|
|
environment:
|
|
GOPRIVATE: git.beatrice.wtf/panic.haus/*
|
|
GONOSUMDB: git.beatrice.wtf/panic.haus/*
|
|
GONOSUMCHECK: git.beatrice.wtf/panic.haus/*
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang:1.26
|
|
volumes:
|
|
- name: go-mod-cache
|
|
path: /go/pkg/mod
|
|
commands:
|
|
- go mod download
|
|
- go test ./... -count=1
|
|
|
|
- name: build
|
|
image: golang:1.26
|
|
volumes:
|
|
- name: go-mod-cache
|
|
path: /go/pkg/mod
|
|
commands:
|
|
- go build ./...
|
|
|
|
volumes:
|
|
- name: go-mod-cache
|
|
temp: {}
|