diff --git a/.drone.jsonnet b/.drone.jsonnet
index 0e90990..d667bab 100644
--- a/.drone.jsonnet
+++ b/.drone.jsonnet
@@ -164,7 +164,7 @@ local PipelineNotifications(deps=[],) = {
steps: [
{
name: 'matrix',
- image: 'plugins/matrix',
+ image: 'thegeeklab/drone-matrix',
settings: {
homeserver: { from_secret: 'matrix_homeserver' },
roomid: { from_secret: 'matrix_roomid' },
diff --git a/.drone.yml b/.drone.yml
index 716f176..d5cbbca 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,148 +1,168 @@
---
-depends_on: []
kind: pipeline
name: test
+
platform:
- arch: amd64
os: linux
+ arch: amd64
+
steps:
-- commands:
- - go run honnef.co/go/tools/cmd/staticcheck ./...
- image: golang:1.16
- name: staticcheck
- volumes:
+ - name: staticcheck
+ image: golang:1.16
+ commands:
+ - go run honnef.co/go/tools/cmd/staticcheck ./...
+ volumes:
+ - name: gopath
+ path: /go
+
+ - name: lint
+ image: golang:1.16
+ commands:
+ - go run golang.org/x/lint/golint -set_exit_status ./...
+ volumes:
+ - name: gopath
+ path: /go
+
+ - name: vet
+ image: golang:1.16
+ commands:
+ - go vet ./...
+ volumes:
+ - name: gopath
+ path: /go
+
+ - name: test
+ image: golang:1.16
+ commands:
+ - go test -cover ./...
+ volumes:
+ - name: gopath
+ path: /go
+
+volumes:
- name: gopath
- path: /go
-- commands:
- - go run golang.org/x/lint/golint -set_exit_status ./...
- image: golang:1.16
- name: lint
- volumes:
- - name: gopath
- path: /go
-- commands:
- - go vet ./...
- image: golang:1.16
- name: vet
- volumes:
- - name: gopath
- path: /go
-- commands:
- - go test -cover ./...
- image: golang:1.16
- name: test
- volumes:
- - name: gopath
- path: /go
+ temp: {}
+
trigger:
ref:
- - refs/heads/main
- - refs/tags/**
- - refs/pull/**
-volumes:
-- name: gopath
- temp: {}
+ - refs/heads/main
+ - refs/tags/**
+ - refs/pull/**
+
---
-depends_on:
-- test
-image_pull_secrets:
-- docker_config
kind: pipeline
name: release
+
platform:
- arch: amd64
os: linux
+ arch: amd64
+
steps:
-- commands:
- - git fetch -tq
- - git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased
- unreleased}
- image: thegeeklab/git-chglog
- name: changelog-generate
-- commands:
- - prettier CHANGELOG.md
- - prettier -w CHANGELOG.md
- image: thegeeklab/alpine-tools
- name: changelog-format
-- image: plugins/github-release
- name: publish
- settings:
- api_key:
- from_secret: github_token
- note: CHANGELOG.md
- overwrite: true
- title: ${DRONE_TAG}
- when:
- ref:
- - refs/tags/**
+ - name: changelog-generate
+ image: thegeeklab/git-chglog
+ commands:
+ - git fetch -tq
+ - git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
+
+ - name: changelog-format
+ image: thegeeklab/alpine-tools
+ commands:
+ - prettier CHANGELOG.md
+ - prettier -w CHANGELOG.md
+
+ - name: publish
+ image: plugins/github-release
+ settings:
+ api_key:
+ from_secret: github_token
+ note: CHANGELOG.md
+ overwrite: true
+ title: ${DRONE_TAG}
+ when:
+ ref:
+ - refs/tags/**
+
+image_pull_secrets:
+ - docker_config
+
trigger:
ref:
- - refs/heads/main
- - refs/tags/**
- - refs/pull/**
----
+ - refs/heads/main
+ - refs/tags/**
+ - refs/pull/**
+
depends_on:
-- release
+ - test
+
+---
kind: pipeline
name: docs
+
platform:
- arch: amd64
os: linux
+ arch: amd64
+
steps:
-- commands:
- - markdownlint 'README.md' 'CONTRIBUTING.md'
- image: thegeeklab/markdownlint-cli
- name: markdownlint
-- commands:
- - npm install -g spellchecker-cli
- - spellchecker --files 'README.md' 'CONTRIBUTING.md' -d .dictionary -p spell indefinite-article
- syntax-urls --no-suggestions
- environment:
- FORCE_COLOR: true
- NPM_CONFIG_LOGLEVEL: error
- image: node:lts-alpine
- name: spellcheck
+ - name: markdownlint
+ image: thegeeklab/markdownlint-cli
+ commands:
+ - markdownlint 'README.md' 'CONTRIBUTING.md'
+
+ - name: spellcheck
+ image: node:lts-alpine
+ commands:
+ - npm install -g spellchecker-cli
+ - spellchecker --files 'README.md' 'CONTRIBUTING.md' -d .dictionary -p spell indefinite-article syntax-urls --no-suggestions
+ environment:
+ FORCE_COLOR: true
+ NPM_CONFIG_LOGLEVEL: error
+
trigger:
ref:
- - refs/heads/main
- - refs/tags/**
- - refs/pull/**
----
+ - refs/heads/main
+ - refs/tags/**
+ - refs/pull/**
+
depends_on:
-- docs
+ - release
+
+---
kind: pipeline
name: notifications
+
platform:
- arch: amd64
os: linux
+ arch: amd64
+
steps:
-- image: plugins/matrix
- name: matrix
- settings:
- homeserver:
- from_secret: matrix_homeserver
- password:
- from_secret: matrix_password
- roomid:
- from_secret: matrix_roomid
- template: 'Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name
- }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message:
- {{ build.message }}'
- username:
- from_secret: matrix_username
- when:
- status:
- - success
- - failure
+ - name: matrix
+ image: thegeeklab/drone-matrix
+ settings:
+ homeserver:
+ from_secret: matrix_homeserver
+ password:
+ from_secret: matrix_password
+ roomid:
+ from_secret: matrix_roomid
+ template: "Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}"
+ username:
+ from_secret: matrix_username
+ when:
+ status:
+ - success
+ - failure
+
trigger:
ref:
- - refs/heads/main
- - refs/tags/**
+ - refs/heads/main
+ - refs/tags/**
status:
- - success
- - failure
+ - success
+ - failure
+
+depends_on:
+ - docs
+
---
kind: signature
-hmac: 90235d1911233db57107b28ec6925c75d4b788f40771ee454b8c14b57b3265cb
-
-...
+hmac: 42a2167ae9705a4a04a27f4b333263c30dab5921dac8eed61fee0636d4e1ed50