-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
57 lines (53 loc) · 1.53 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
55
56
57
language: ruby
services:
- docker
env:
global:
- VERSION=1.9.7
- IMAGE=imega/base-builder
- ALPINE_VERSION=3.14
stages:
- Test
- Arch-Release
- Manifest-Release
jobs:
include:
- stage: Test
arch: amd64
os: linux
script: make test
- stage: Test
arch: ppc64le
os: linux
script: make test
- stage: Test
arch: arm64
os: linux
script: make test
- stage: Arch-Release
if: branch = master
os: linux
arch: amd64
script:
- ARCH_RELEASE=0
- docker pull $IMAGE:$VERSION-$TRAVIS_CPU_ARCH || ARCH_RELEASE=1
- "[ ${ARCH_RELEASE} == 1 ] && (make release DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS IMAGE=$IMAGE TAG=$VERSION)"
- stage: Arch-Release
if: branch = master
os: linux
arch: ppc64le
script:
- "docker pull $IMAGE:$VERSION-$TRAVIS_CPU_ARCH || make release DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS IMAGE=$IMAGE TAG=$VERSION"
- stage: Arch-Release
if: branch = master
os: linux
arch: arm64
script:
- "docker pull $IMAGE:$VERSION-$TRAVIS_CPU_ARCH || make release DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS IMAGE=$IMAGE TAG=$VERSION"
- stage: Manifest-Release
if: branch = master
arch: amd64
os: linux
script:
- export DOCKER_CLI_EXPERIMENTAL=enabled
- "docker pull $IMAGE:$VERSION || make release-manifest DOCKER_USER=$DOCKER_USER DOCKER_PASS=$DOCKER_PASS IMAGE=$IMAGE TAG=$VERSION || exit 0"