Ask Bjørn Hansen
4dd5054000
Some checks reported errors
continuous-integration/drone/push Build encountered an error
48 lines
838 B
YAML
48 lines
838 B
YAML
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
privileged: true
|
|
image: golang:1.17.2
|
|
commands:
|
|
- go test -v
|
|
- go build
|
|
- echo "hello" > /shared/greetings.txt
|
|
volumes:
|
|
- name: go-pkg
|
|
path: /shared
|
|
resources:
|
|
limits:
|
|
cpu: 1000
|
|
memory: 300MiB
|
|
requests:
|
|
cpu: 500
|
|
memory: 200MiB
|
|
|
|
- name: docker
|
|
image: harbor.ntppool.org/ntppool/drone-kaniko:latest
|
|
pull: always
|
|
settings:
|
|
repo: drone-builds/drone-test
|
|
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: shared
|
|
claim:
|
|
name: go-pkg
|
|
---
|
|
kind: signature
|
|
hmac: 409489fec691daa0a39271da86987a04747a9822f990b514abe87d8a4b1b1a17
|
|
|
|
...
|