-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
34 lines (30 loc) · 1.03 KB
/
circle.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
general:
artifacts:
- packages
machine:
services:
- docker
dependencies:
pre:
- git fetch --tags
- go get github.com/tcnksm/ghr
- mkdir packages
- echo -e "$RSA_PUBLIC_KEY" > packages/sgerrand.rsa.pub
override:
- docker run -e RSA_PRIVATE_KEY="$RSA_PRIVATE_KEY" -e RSA_PRIVATE_KEY_NAME="sgerrand.rsa" -v $(pwd):/home/builder/package -v $(pwd)/packages:/home/builder/packages sgerrand/alpine-abuild:3.4
test:
override:
- docker run -it -v $(pwd)/packages:/packages alpine:3.4 sh -c "cp /packages/sgerrand.rsa.pub /etc/apk/keys/ && apk -U add --no-progress --upgrade /packages/builder/x86_64/*.apk"
deployment:
release:
tag: /[0-9]+(\.[0-9]+){1,2}(\-r\d+)?$/
owner: sgerrand
commands:
- ghr -u sgerrand $CIRCLE_TAG packages/
- ghr -u sgerrand $CIRCLE_TAG packages/builder/x86_64
master:
branch: master
owner: sgerrand
commands:
- ghr -u sgerrand --prerelease --delete unreleased packages
- ghr -u sgerrand --prerelease unreleased packages/builder/x86_64