Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 74fe401261 | |||
| ee53eed048 | |||
| 713668a110 | |||
| 65d03e376d | |||
| cc6194c048 | |||
| 2ebe6ba51c | |||
| d3319d2202 |
45
.drone.yml
45
.drone.yml
@@ -1,60 +1,37 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: go-core-ci
|
||||
name: go-core
|
||||
|
||||
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-core-release
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
ref:
|
||||
- refs/tags/v*
|
||||
|
||||
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 ./...
|
||||
|
||||
- name: warm-proxy
|
||||
image: golang:1.26
|
||||
commands:
|
||||
- go list -m git.beatrice.wtf/panic.haus/go-core@${DRONE_TAG}
|
||||
volumes:
|
||||
- name: go-mod-cache
|
||||
temp: {}
|
||||
|
||||
Reference in New Issue
Block a user