From ccd503b0e79c47dbff27ed4b2ff5489624646494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Sun, 31 Oct 2021 00:33:52 -0700 Subject: [PATCH] Try sample from github --- .drone.yml | 57 ++++++++++++++++++++++++------------------------------ 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9015ccc..792cc73 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,45 +3,38 @@ 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 +clone: + disable: true -- 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 +steps: +- name: write + pull: if-not-exists + image: alpine + volumes: + - name: shared + path: /shared + commands: + - pwd + - echo "hello" > /shared/greetings.txt + +- name: read + pull: if-not-exists + image: alpine + volumes: + - name: shared + path: /shared + commands: + - pwd + - ls /shared + - cat /shared/greetings.txt volumes: - name: shared claim: name: go-pkg + --- kind: signature -hmac: 409489fec691daa0a39271da86987a04747a9822f990b514abe87d8a4b1b1a17 +hmac: 3907aa03bc3c2cc7725159839547e594001bd34ed1fe997f5510c22de6522e60 ...