Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e71d4e989a | |||
| d7e5857ee0 | |||
| 5d837e47ef | |||
| cbb857172c | |||
| 9001e85f2b | |||
| 7df2bc6831 | |||
| 677b51956f |
45
.drone.yml
45
.drone.yml
@@ -1,60 +1,37 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: go-auth-ci
|
name: go-auth
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
- develop
|
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- 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
|
- tag
|
||||||
ref:
|
|
||||||
- refs/tags/v*
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
GOPRIVATE: git.beatrice.wtf/panic.haus/*
|
GOPRIVATE: git.beatrice.wtf/panic.haus/*
|
||||||
GONOSUMDB: git.beatrice.wtf/panic.haus/*
|
GONOSUMDB: git.beatrice.wtf/panic.haus/*
|
||||||
|
GONOSUMCHECK: git.beatrice.wtf/panic.haus/*
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.26
|
image: golang:1.26
|
||||||
|
volumes:
|
||||||
|
- name: go-mod-cache
|
||||||
|
path: /go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- go mod download
|
- go mod download
|
||||||
- go test ./... -count=1
|
- go test ./... -count=1
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.26
|
image: golang:1.26
|
||||||
|
volumes:
|
||||||
|
- name: go-mod-cache
|
||||||
|
path: /go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- go build ./...
|
- go build ./...
|
||||||
|
|
||||||
- name: warm-proxy
|
volumes:
|
||||||
image: golang:1.26
|
- name: go-mod-cache
|
||||||
commands:
|
temp: {}
|
||||||
- go list -m git.beatrice.wtf/panic.haus/go-auth@${DRONE_TAG}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user