Compare commits

...

14 Commits

Author SHA1 Message Date
0b2078c6c5 uncomment test stuff
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-08 18:09:27 -05:00
0ed96f6c22 Remove prerelease
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-08 18:06:56 -05:00
8c12e80ad2 Try to stop building on pushes to non-master 2021-01-08 18:05:33 -05:00
f6a9199f25 Change exec find
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-08 18:01:58 -05:00
3c2cae3011 Switch to ubuntu
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-08 17:59:28 -05:00
f9c082d30f More debugging
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-08 17:56:30 -05:00
5bb4da6178 More debugging
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-08 17:53:19 -05:00
d810bcb61c Try to fix compress step again
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-08 17:44:52 -05:00
e7353bb8df Try to fix compress step
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2021-01-08 17:38:55 -05:00
06ea8bea30 Add branch name to unstable release 2021-01-08 17:36:24 -05:00
2e5ab23bd1 Add darwin releases
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-01-08 17:33:27 -05:00
aa741eb49e Make check step faster
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2021-01-08 17:31:56 -05:00
96c9b7d74c Add prereleases
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2021-01-08 17:29:57 -05:00
31336280e6 Add release uploads
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-08 17:21:02 -05:00

View File

@ -3,33 +3,15 @@ kind: pipeline
name: test name: test
steps: steps:
- name: test - name: test
image: golang:1.12 image: golang:1.12
environment: environment:
VERSION: ${DRONE_TAG:-${DRONE_COMMIT}} VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
commands: commands:
- make build
- make test - make test
- name: check - name: check
image: python:3 image: iamthefij/drone-pre-commit:personal
commands:
- pip install pre-commit==1.20.0
- make check
- name: notify
image: drillster/drone-email
settings:
host:
from_secret: SMTP_HOST
username:
from_secret: SMTP_USER
password:
from_secret: SMTP_PASS
from: drone@iamthefij.com
when:
status: [changed, failure]
--- ---
kind: pipeline kind: pipeline
@ -52,7 +34,31 @@ steps:
environment: environment:
VERSION: ${DRONE_TAG:-${DRONE_COMMIT}} VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
commands: commands:
- make all-linux - make all
- name: compress binaries for release
image: ubuntu
commands:
- find ./dist -type f -executable -execdir tar -czvf {}.tar.gz {} \;
when:
event: tag
- name: upload gitea release
image: plugins/gitea-release
settings:
title: ${DRONE_TAG}
files: dist/*.tar.gz
checksum:
- md5
- sha1
- sha256
- sha512
base_url:
from_secret: gitea_base_url
api_key:
from_secret: gitea_token
when:
event: tag
- name: push image - arm - name: push image - arm
image: plugins/docker image: plugins/docker
@ -104,15 +110,27 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
---
kind: pipeline
name: notify
depends_on:
- test
- publish
trigger:
status:
- failure
steps:
- name: notify - name: notify
image: drillster/drone-email image: drillster/drone-email
settings: settings:
host: host:
from_secret: SMTP_HOST from_secret: SMTP_HOST # pragma: whitelist secret
username: username:
from_secret: SMTP_USER from_secret: SMTP_USER # pragma: whitelist secret
password: password:
from_secret: SMTP_PASS from_secret: SMTP_PASS # pragma: whitelist secret
from: drone@iamthefij.com from: drone@iamthefij.com
when:
status: [changed, failure]