-
Notifications
You must be signed in to change notification settings - Fork 14
/
.drone.yml
72 lines (71 loc) · 1.63 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
kind: pipeline
name: amd64
platform:
os: linux
arch: amd64
steps:
- name: test
image: ruby:2.6
commands:
- gem install bundler -v 2.0.2
- bundle install --path bundler
- bundle exec rspec spec/
- bundle exec rubocop lib/
- name: docker_latest
image: plugins/docker
settings:
registry: quay.io
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: quay.io/kontena/mortar
dockerfile: Dockerfile
auto_tag: true
when:
branch: ['master']
event: ['push']
- name: docker_release
image: plugins/docker
settings:
registry: quay.io
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: quay.io/kontena/mortar
dockerfile: Dockerfile
auto_tag: true
when:
event: ['tag']
- name: release-gem
image: ruby:2.4
environment:
RUBYGEMS_AUTH:
from_secret: rubygems_auth
commands:
- mkdir -p ~/.gem
- echo $RUBYGEMS_AUTH | base64 -d > ~/.gem/credentials && chmod 0600 ~/.gem/credentials
- gem build kontena-mortar.gemspec
- gem push *.gem
when:
event: ['tag']
- name: create_gh_release
image: ubuntu:xenial
environment:
GITHUB_TOKEN:
from_secret: github_token
commands:
- ./build/drone/create_release.sh
when:
event: tag
- name: build_xenial
image: ubuntu:xenial
environment:
CPPFLAGS: '-P'
GITHUB_TOKEN:
from_secret: github_token
commands:
- ./build/drone/ubuntu_xenial.sh
when:
event: tag