drone-test/.drone.yml

48 lines
838 B
YAML
Raw Normal View History

2021-10-31 06:32:11 +00:00
---
2020-05-25 04:45:54 +00:00
kind: pipeline
type: kubernetes
name: default
steps:
- name: test
2021-10-31 07:12:40 +00:00
privileged: true
2021-10-31 06:30:34 +00:00
image: golang:1.17.2
2020-05-25 04:45:54 +00:00
commands:
- go test -v
2020-05-25 04:45:54 +00:00
- go build
2021-10-31 07:08:30 +00:00
- echo "hello" > /shared/greetings.txt
2021-10-31 06:30:34 +00:00
volumes:
- name: go-pkg
2021-10-31 07:08:30 +00:00
path: /shared
2020-05-25 05:06:21 +00:00
resources:
limits:
2020-05-25 06:49:54 +00:00
cpu: 1000
memory: 300MiB
requests:
2020-05-25 06:49:54 +00:00
cpu: 500
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
2021-05-30 02:26:21 +00:00
pull: always
2020-05-25 05:32:38 +00:00
settings:
2020-05-25 06:52:07 +00:00
repo: drone-builds/drone-test
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
username:
from_secret: harbor_username
password:
from_secret: harbor_password
2021-10-31 06:30:34 +00:00
volumes:
- name: shared
claim:
name: go-pkg
2021-10-31 06:32:11 +00:00
---
kind: signature
2021-10-31 07:12:40 +00:00
hmac: 409489fec691daa0a39271da86987a04747a9822f990b514abe87d8a4b1b1a17
2021-10-31 06:32:11 +00:00
...