tube/.drone.yml

53 lines
931 B
YAML
Raw Permalink Normal View History

2022-11-08 01:06:55 +03:00
---
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:
2022-11-08 02:38:40 +03:00
repo: prologic/tube
2022-11-08 01:06:55 +03:00
tags: latest
build_args:
2022-11-08 02:38:40 +03:00
- VERSION=latest
2022-11-08 01:06:55 +03:00
- 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
2022-11-08 02:16:05 +03:00
depends_on:
- build-and-test
- build-image-push
2022-11-08 01:06:55 +03:00
when:
status:
- success
- failure
trigger:
branch:
- master
event:
- tag
- push
- pull_request