Try sample from github
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ask Bjørn Hansen 2021-10-31 00:33:52 -07:00
parent 4dd5054000
commit ccd503b0e7

View File

@ -3,45 +3,38 @@ kind: pipeline
type: kubernetes type: kubernetes
name: default name: default
steps: clone:
- name: test disable: true
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 steps:
image: harbor.ntppool.org/ntppool/drone-kaniko:latest - name: write
pull: always pull: if-not-exists
settings: image: alpine
repo: drone-builds/drone-test volumes:
registry: harbor.ntppool.org - name: shared
auto_tag: true path: /shared
tags: SHA7,${DRONE_SOURCE_BRANCH} commands:
cache: true - pwd
username: - echo "hello" > /shared/greetings.txt
from_secret: harbor_username
password: - name: read
from_secret: harbor_password pull: if-not-exists
image: alpine
volumes:
- name: shared
path: /shared
commands:
- pwd
- ls /shared
- cat /shared/greetings.txt
volumes: volumes:
- name: shared - name: shared
claim: claim:
name: go-pkg name: go-pkg
--- ---
kind: signature kind: signature
hmac: 409489fec691daa0a39271da86987a04747a9822f990b514abe87d8a4b1b1a17 hmac: 3907aa03bc3c2cc7725159839547e594001bd34ed1fe997f5510c22de6522e60
... ...