From 795028c4bb5645f70421d9ec481f7da1c9977bb9 Mon Sep 17 00:00:00 2001 From: Eigeen Date: Sun, 3 Apr 2022 18:01:36 +0800 Subject: [PATCH] CI test #6 (+5 squashed commit) Squashed commit: [c6787e1] CI test #5 [ad1003e] CI test #4 [3d4607c] CI test #3 [97b1961] CI test #2 [4cab727] CI test #1 --- .drone.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..be5beaf --- /dev/null +++ b/.drone.yml @@ -0,0 +1,48 @@ +kind: pipeline +type: docker +name: compile + +steps: + # - name: restore-pkg + # image: drillster/drone-volume-cache + # volumes: + # - name: cache + # path: /cache + # settings: + # restore: true + # mount: + # - $GOPATH/pkg + + # - name: test + # image: eigeen/golang-devops:1.18 + # commands: + # - go test + + - name: build + image: golang:1.18 + environments: + - CGO_ENABLED=0 + - GOOS=linux + - GOARCH=amd64 + commands: + - go build + + # - name: rebuild-pkg + # image: drillster/drone-volume-cache + # volumes: + # - name: cache + # path: /cache + # settings: + # rebuild: true + # mount: + # - $GOPATH/pkg + # #当对应条件的时候才会执行 + # when: + # status: + # - success + # - failure + +# volumes: +# - name: cache +# host: +# path: /tmp/cache \ No newline at end of file