-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
54 lines (48 loc) · 1.55 KB
/
.travis.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
branches:
only:
- master
language: ruby
services:
- docker
env:
global:
- IMAGE=imega/jq
- NV=`curl --silent "https://raw.githubusercontent.com/alpinelinux/aports/master/main/jq/APKBUILD" | grep pkgver= | sed 's/pkgver=//g'`
stages:
- Arch-Build
- Manifest-Release
jobs:
include:
- stage: Arch-Build
arch: amd64
os: linux
script:
- RELEASE=0
- docker pull $IMAGE:$NV-$TRAVIS_CPU_ARCH || RELEASE=1
- make build IMAGE=$IMAGE TAG=$NV || exit 1
after_success:
- "[ ${RELEASE} == 1 ] && (make release DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS IMAGE=$IMAGE TAG=$NV)"
- stage: Arch-Build
arch: ppc64le
os: linux
script:
- RELEASE=0
- docker pull $IMAGE:$NV-$TRAVIS_CPU_ARCH || RELEASE=1
- make build IMAGE=$IMAGE TAG=$NV || exit 1
after_success:
- "[ ${RELEASE} == 1 ] && (make release DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS IMAGE=$IMAGE TAG=$NV)"
- stage: Arch-Build
arch: arm64
os: linux
script:
- RELEASE=0
- docker pull $IMAGE:$NV-$TRAVIS_CPU_ARCH || RELEASE=1
- make build IMAGE=$IMAGE TAG=$NV || exit 1
after_success:
- "[ ${RELEASE} == 1 ] && (make release DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS IMAGE=$IMAGE TAG=$NV)"
- stage: Manifest-Release
arch: amd64
os: linux
script:
- export DOCKER_CLI_EXPERIMENTAL=enabled
- "make release-manifest DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS IMAGE=$IMAGE TAG=$NV"