forked from yangxuan8282/docker-glibc-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
34 lines (34 loc) · 926 Bytes
/
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:
- "artifacts"
machine:
environment:
GLIBC_VERSION: 2.27
pre:
- sudo mv /usr/local/go /usr/local/go-1.6.2
- wget -q -O /tmp/go1.7.3.tgz https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz
- sudo tar -xzf /tmp/go1.7.3.tgz -C /usr/local
services:
- docker
dependencies:
pre:
- git fetch --tags
- go get github.com/tcnksm/ghr
override:
- docker pull sgerrand/glibc-builder
test:
pre:
- mkdir -p artifacts
override:
- "docker run --rm -e STDOUT=1 sgerrand/glibc-builder $GLIBC_VERSION /usr/glibc-compat > artifacts/glibc-bin-$GLIBC_VERSION-0-$(uname -m).tar.gz"
deployment:
release:
tag: /[0-9]+(\.[0-9]+){1,2}(\-\d+)?$/
owner: sgerrand
commands:
- ghr -u sgerrand $CIRCLE_TAG artifacts/
master:
branch: master
owner: sgerrand
commands:
- ghr -u sgerrand --prerelease --delete unreleased artifacts