[89e5e8]: / .drone.yml  Maximize  Restore  History

Download this file

28 lines (27 with data), 524 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
kind: pipeline
name: default
workspace:
  base: /go
  path: src/github.com/yourname/go-drone-hello-world
steps:
  - name: test
    image: golang
    commands:
      - go get
      - go test
  - name: build
    image: golang
    commands:
      - go get
      - go build -o output
      - chmod +x output
  - name: run
    image: golang
    commands:
      - go get
      - go build -o output
      - chmod +x output
      - ./output
      - echo "test"
      - mkdir -p .drone-artifacts/
      - cp output .drone-artifacts/