drone-test/.drone.yml
Ask Bjørn Hansen 57958bd383
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Update golang and drone-kaniko
2021-11-08 13:31:27 -08:00

60 lines
1.1 KiB
YAML

---
kind: pipeline
type: kubernetes
name: default
steps:
- name: test
image: golang:1.17.3
commands:
- go test -v
- go build
- echo "hello" > /shared/greetings.txt
- hostname >> /shared/greetings.txt
volumes:
- name: shared
path: /shared
resources:
limits:
cpu: 1000
memory: 300MiB
requests:
cpu: 500
memory: 200MiB
- name: read
pull: if-not-exists
image: alpine
volumes:
- name: shared
path: /shared
commands:
- pwd
- ls /shared
- cat /shared/greetings.txt
- name: docker
image: harbor.ntppool.org/ntppool/drone-kaniko:1.7.0-1
pull: always
settings:
repo: ask/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: 10ad8f183db2d1a7a1062bd1f0aab9e7292c2e87accc080ed2340aa6989e1695
...