wip
This commit is contained in:
53
.drone.yml
Normal file
53
.drone.yml
Normal file
@@ -0,0 +1,53 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: default
|
||||
|
||||
environment:
|
||||
GOCACHE: /cache/pkg/cache
|
||||
GOMODCACHE: /cache/pkg/mod
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: golang:1.20.3
|
||||
volumes:
|
||||
- name: go
|
||||
path: /go
|
||||
- name: gopkg
|
||||
path: /cache
|
||||
commands:
|
||||
- go test -v
|
||||
- go build
|
||||
- go mod vendor
|
||||
|
||||
- name: docker
|
||||
image: harbor.ntppool.org/ntppool/drone-kaniko:main
|
||||
pull: always
|
||||
volumes:
|
||||
- name: go
|
||||
path: /go
|
||||
- name: gopkg
|
||||
path: /cache
|
||||
settings:
|
||||
repo: ntppool/data-api
|
||||
registry: harbor.ntppool.org
|
||||
auto_tag: true
|
||||
tags: SHA7,${DRONE_SOURCE_BRANCH}
|
||||
cache: true
|
||||
username:
|
||||
from_secret: harbor_username
|
||||
password:
|
||||
from_secret: harbor_password
|
||||
|
||||
volumes:
|
||||
- name: go
|
||||
temp: {}
|
||||
- name: gopkg
|
||||
claim:
|
||||
name: go-pkg
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: b02e0d0b4a7ecc25a880b92bf94873c3fc61c87a65f225712c880399deebc7dd
|
||||
|
||||
...
|
||||
Reference in New Issue
Block a user