2020-05-25 04:45:54 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2020-05-25 07:01:05 +00:00
|
|
|
image: golang:1.14.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-05-25 05:54:48 +00:00
|
|
|
#image: plugins/docker
|
|
|
|
image: banzaicloud/drone-kaniko
|
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 05:54:48 +00:00
|
|
|
tags: latest,${DRONE_COMMIT_SHA}
|
|
|
|
#auto_tag: true
|
2020-05-25 05:49:47 +00:00
|
|
|
username:
|
|
|
|
from_secret: harbor_username
|
|
|
|
password:
|
|
|
|
from_secret: harbor_password
|