73 lines
1.4 KiB
YAML
73 lines
1.4 KiB
YAML
kind: pipeline
|
|
name: default
|
|
|
|
workspace:
|
|
base: /go
|
|
path: src/github.com/keel-hq/keel
|
|
|
|
steps:
|
|
- name: unit-test
|
|
image: golang:1.23.4
|
|
commands:
|
|
- make test
|
|
|
|
- name: build
|
|
image: golang:1.23.4
|
|
commands:
|
|
- make install
|
|
|
|
- name: build-ui
|
|
image: node:16.20.2-alpine
|
|
commands:
|
|
- cd ui
|
|
- yarn
|
|
- yarn run lint --no-fix
|
|
|
|
- name: publish-image
|
|
image: plugins/docker
|
|
settings:
|
|
repo: keelhq/keel
|
|
auto_tag: true
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
# - name: build-arm
|
|
# image: golang:1.14.2
|
|
# commands:
|
|
# - make arm
|
|
|
|
# - 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
|
|
|
|
# - name: publish-aarch64-image
|
|
# image: plugins/docker
|
|
# settings:
|
|
# repo: keelhq/keel-aarch64
|
|
# dockerfile: dockerfile.aarch64
|
|
# auto_tag: true
|
|
# username:
|
|
# from_secret: docker_username
|
|
# password:
|
|
# from_secret: docker_password
|
|
|
|
- name: slack
|
|
image: plugins/slack
|
|
when:
|
|
status: [ success, failure ]
|
|
settings:
|
|
webhook:
|
|
from_secret: slack_url
|
|
channel: general
|
|
username: drone
|
|
icon_url: https://i.pinimg.com/originals/51/29/a4/5129a48ddad9e8408d2757dd10eb836f.jpg
|