keel/.drone.yml

73 lines
1.4 KiB
YAML
Raw Normal View History

2019-04-27 07:06:49 +00:00
kind: pipeline
name: default
workspace:
base: /go
path: src/github.com/keel-hq/keel
steps:
- name: unit-test
image: golang:1.20.1
2019-04-27 07:06:49 +00:00
commands:
- make test
- name: build
image: golang:1.20.1
2019-04-27 07:06:49 +00:00
commands:
- make install
2019-05-28 11:45:36 +00:00
- name: build-ui
image: node:9.11.1-alpine
commands:
2019-05-29 19:10:38 +00:00
- cd ui
- yarn
- yarn run lint --no-fix
2019-05-28 11:45:36 +00:00
2020-04-19 18:07:49 +00:00
- name: publish-image
2019-04-27 07:06:49 +00:00
image: plugins/docker
settings:
repo: keelhq/keel
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password
2019-10-11 10:08:30 +00:00
# - name: build-arm
2020-04-19 18:07:49 +00:00
# image: golang:1.14.2
2019-10-11 10:08:30 +00:00
# commands:
# - make arm
2020-04-19 18:07:49 +00:00
2019-10-11 10:08:30 +00:00
# - name: publish-arm-image
# image: plugins/docker
# settings:
# repo: keelhq/keel-arm
# dockerfile: dockerfile.armhf
# auto_tag: true
# username:
# from_secret: docker_username
# password:
# from_secret: docker_password
2019-09-29 20:48:28 +00:00
2020-04-19 18:07:49 +00:00
# - name: publish-aarch64-image
2019-10-11 10:08:30 +00:00
# image: plugins/docker
# settings:
# repo: keelhq/keel-aarch64
# dockerfile: dockerfile.aarch64
# auto_tag: true
# username:
# from_secret: docker_username
# password:
# from_secret: docker_password
2019-09-29 20:48:28 +00:00
2019-04-27 07:06:49 +00:00
- name: slack
image: plugins/slack
when:
status: [ success, failure ]
settings:
webhook:
from_secret: slack_url
channel: general
username: drone
2020-04-19 18:07:49 +00:00
icon_url: https://i.pinimg.com/originals/51/29/a4/5129a48ddad9e8408d2757dd10eb836f.jpg