-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
42 lines (38 loc) · 875 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
kind: pipeline
type: docker
name: default
steps:
- name: Test and build binary
image: golang:1.15-buster
commands:
- 'make server'
- 'make go-unit-tests'
- name: Lint JS code
image: pipelinecomponents/eslint:02bbbc8
commands:
- 'eslint static/js/'
- name: Build and publish container image
# do not upgrade, see https://github.com/banzaicloud/drone-kaniko/issues/35
image: banzaicloud/drone-kaniko:0.5.1
settings:
repo: jacksgt/u9k
tags:
- ${DRONE_TAG}
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
when:
ref:
- refs/tags/*
- name: Push to GitHub
image: appleboy/drone-git-push
settings:
branch: master
remote: [email protected]:jacksgt/u9k.git
followtags: true
ssh_key:
from_secret: github_private_key
when:
branch:
- master