summaryrefslogtreecommitdiff
path: root/.drone.yml
blob: c7b4417728740ff95ade2c63698991df928bc5e5 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
kind: pipeline
name: default

steps:
  - name: build-and-test
    image: r.mills.io/prologic/golang-alpine:latest
    commands:
      - make deps
      - make build
      - make test

  - name: build-image-push
    image: plugins/kaniko
    settings:
      repo: prologic/yarnd
      tags: latest
      build_args:
        - VERSION=edge
        - COMMIT=${DRONE_COMMIT_SHA:0:8}
      username:
        from_secret: dockerhub_username
      password:
        from_secret: dockerhub_password
    depends_on:
      - build-and-test
    when:
      branch:
        - master
      event:
        - push

  - name: notify-irc
    image: plugins/webhook
    settings:
      urls:
        - https://msgbus.mills.io/ci.mills.io
    depends_on:
      - build-and-test
      - build-image-push
    when:
      status:
        - success
        - failure

trigger:
  branch:
    - master
  event:
    - tag
    - push
    - pull_request