This repository has been archived by the owner on Dec 22, 2024. It is now read-only.
forked from dgrant/eyefiserver2
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
65 lines (60 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
55
56
57
58
59
60
61
62
63
64
65
language: shell
env:
global:
- IMAGE_BASE_NAME=${IMAGE_BASE_NAME}
jobs:
include:
- stage: "build and test"
name: build-amd64
arch: amd64
workspaces:
create:
name: docker-image-amd64
paths:
- image-amd64.tar
os: linux
language: shell
script:
- IMAGE_VERSION=${TRAVIS_BRANCH} build/build-arch.sh
#TODO: call test script if available
- name: build-arm64
arch: arm64
workspaces:
create:
name: docker-image-arm64
paths:
- image-arm64.tar
os: linux
language: shell
script:
- IMAGE_VERSION=${TRAVIS_BRANCH} build/build-arch.sh
#TODO: call test script if available
- stage: auto-tag
language: node_js
arch: amd64
os: linux
node_js: lts/*
if: tag IS blank AND branch = master AND type != pull_request
script:
- build/autotag.sh
- stage: push
arch: amd64
os: linux
language: shell
if: tag IS present
workspaces:
use:
- docker-image-amd64
- docker-image-arm64
script:
- docker image load -i image-amd64.tar
- IMAGE_VERSION=${TRAVIS_TAG} TARGET_ARCH=amd64 build/push-arch.sh
- docker image load -i image-arm64.tar
- IMAGE_VERSION=${TRAVIS_TAG} TARGET_ARCH=arm64 build/push-arch.sh
- stage: manifest
language: shell
arch: amd64
os: linux
if: tag IS present
script:
- IMAGE_VERSION=${TRAVIS_TAG} build/manifest.sh