2020-05-25 04:45:54 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2021-05-06 09:22:59 +00:00
|
|
|
image: golang:1.16.3
|
2020-05-25 04:45:54 +00:00
|
|
|
commands:
|
2020-05-25 06:25:12 +00:00
|
|
|
- go test -v
|
2020-05-25 04:45:54 +00:00
|
|
|
- go build
|
2020-05-25 05:06:21 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2020-05-25 06:49:54 +00:00
|
|
|
cpu: 1000
|
|
|
|
memory: 300MiB
|
2020-05-25 06:25:12 +00:00
|
|
|
requests:
|
2020-05-25 06:49:54 +00:00
|
|
|
cpu: 500
|
2020-05-25 06:37:28 +00:00
|
|
|
memory: 200MiB
|
2020-05-25 05:32:38 +00:00
|
|
|
|
|
|
|
- name: docker
|
2020-06-26 04:54:42 +00:00
|
|
|
image: harbor.ntppool.org/ntppool/drone-kaniko:latest
|
2020-05-25 05:32:38 +00:00
|
|
|
settings:
|
2020-05-25 06:52:07 +00:00
|
|
|
repo: drone-builds/drone-test
|
2020-05-25 06:25:12 +00:00
|
|
|
registry: harbor.ntppool.org
|
2020-05-25 10:11:45 +00:00
|
|
|
auto_tag: true
|
2020-05-25 10:30:48 +00:00
|
|
|
tags: SHA7,${DRONE_SOURCE_BRANCH}
|
2020-05-25 07:03:37 +00:00
|
|
|
cache: true
|
2020-05-25 05:49:47 +00:00
|
|
|
username:
|
|
|
|
from_secret: harbor_username
|
|
|
|
password:
|
|
|
|
from_secret: harbor_password
|