Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e71d4e989a |
56
.drone.yml
56
.drone.yml
@@ -1,58 +1,18 @@
|
|||||||
---
|
---
|
||||||
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:
|
|
||||||
GOPROXY: https://git.beatrice.wtf/api/packages/panic.haus/go,https://proxy.golang.org,direct
|
|
||||||
GONOSUMDB: git.beatrice.wtf
|
|
||||||
GONOSUMCHECK: git.beatrice.wtf
|
|
||||||
|
|
||||||
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: {}
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: go-auth-release
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
- tag
|
||||||
ref:
|
|
||||||
- refs/tags/v*
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: https://git.beatrice.wtf/api/packages/panic.haus/go,https://proxy.golang.org,direct
|
GOPRIVATE: git.beatrice.wtf/panic.haus/*
|
||||||
GONOSUMDB: git.beatrice.wtf
|
GONOSUMDB: git.beatrice.wtf/panic.haus/*
|
||||||
GONOSUMCHECK: git.beatrice.wtf
|
GONOSUMCHECK: git.beatrice.wtf/panic.haus/*
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
@@ -72,14 +32,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- go build ./...
|
- go build ./...
|
||||||
|
|
||||||
- name: warm-proxy
|
|
||||||
image: golang:1.26
|
|
||||||
commands:
|
|
||||||
- MODULE=$(go list -m)
|
|
||||||
- echo "Warming proxy for $MODULE@${DRONE_TAG}"
|
|
||||||
- curl -sf "https://git.beatrice.wtf/api/packages/panic.haus/go/$MODULE/@v/${DRONE_TAG}.info"
|
|
||||||
- echo "Registered $MODULE@${DRONE_TAG} in Gitea package registry"
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: go-mod-cache
|
- name: go-mod-cache
|
||||||
temp: {}
|
temp: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user