This commit is contained in:
parent
ccd503b0e7
commit
b7f30d3436
43
.drone.yml
43
.drone.yml
@ -3,21 +3,26 @@ kind: pipeline
|
|||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: write
|
- name: test
|
||||||
pull: if-not-exists
|
image: golang:1.17.2
|
||||||
image: alpine
|
commands:
|
||||||
|
- go test -v
|
||||||
|
- go build
|
||||||
|
- echo "hello" > /shared/greetings.txt
|
||||||
|
- hostname >> /shared/greetings.txt
|
||||||
volumes:
|
volumes:
|
||||||
- name: shared
|
- name: shared
|
||||||
path: /shared
|
path: /shared
|
||||||
commands:
|
resources:
|
||||||
- pwd
|
limits:
|
||||||
- echo "hello" > /shared/greetings.txt
|
cpu: 1000
|
||||||
|
memory: 300MiB
|
||||||
|
requests:
|
||||||
|
cpu: 500
|
||||||
|
memory: 200MiB
|
||||||
|
|
||||||
- name: read
|
- name: read
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: alpine
|
image: alpine
|
||||||
volumes:
|
volumes:
|
||||||
@ -28,13 +33,27 @@ steps:
|
|||||||
- ls /shared
|
- ls /shared
|
||||||
- cat /shared/greetings.txt
|
- cat /shared/greetings.txt
|
||||||
|
|
||||||
|
- 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:
|
volumes:
|
||||||
- name: shared
|
- name: shared
|
||||||
claim:
|
claim:
|
||||||
name: go-pkg
|
name: go-pkg
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 3907aa03bc3c2cc7725159839547e594001bd34ed1fe997f5510c22de6522e60
|
hmac: f3cbc57fcf2218f846efb316047d808f99c2ed03fb5e8be35bdf7a7d8f48e388
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user