-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
38 lines (36 loc) · 863 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
kind: pipeline
type: docker
name: build-and-deploy
platform:
os: linux
arch: amd64
steps:
- name: download-gcg
image: docker:git
commands:
- git clone https://github.com/github-changelog-generator/github-changelog-generator gcg
- (cd gcg && git checkout $(cat ../VERSION))
- name: apply-patch
image: docker:git
commands:
- (cd gcg && git apply ../fork.patch)
- name: build-gem
image: ruby:2-alpine
commands:
- (cd gcg && gem build github_changelog_generator.gemspec)
- name: build-and-deploy-image
image: plugins/docker
settings:
context: gcg
dockerfile: Dockerfile
password:
from_secret: docker_password
repo: garykim/gcg-fork
username: garykim
when:
branch:
- master
event:
- push
repo:
- gary-kim/gcg-fork