forked from Unitech/pm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
25 lines (25 loc) · 802 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
pipeline:
build_rpm:
group: build
image: node:stretch
commands:
- apt-get update
- apt-get install -y git ruby ruby-dev rubygems build-essential fakeroot lintian rpm
- gem install rake
- gem install --no-ri --no-rdoc fpm
- gem install --no-ri --no-rdoc package_cloud
- ./packager/build-dist.sh
- echo $${PACKAGECLOUD_TOKEN} > /root/.packagecloud
- ./packager/build-deb-rpm.sh
- ./packager/publish_deb_rpm.sh
secrets: ['packagecloud_token']
when:
event: tag
build_apk:
group: build
image: keymetrics/alpine-pm2-builder:latest
environment:
- AWS_REPO_BUCKET=alpine-apk.pm2.io
secrets: ['apk_rsa_priv_key', 'apk_rsa_pub_key', 'aws_access_key_id', 'aws_secret_access_key']
when:
event: tag