forked from openfaas/faas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (61 loc) · 2.76 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
66
67
68
69
70
71
72
73
74
sudo: required
language: go
go:
- "1.9"
services:
- docker
addons:
apt:
packages:
- docker-ce
before_install:
script:
- ./build.sh
- ./contrib/ci.sh
after_success:
- if [ -z $DOCKER_NS ] ; then
export DOCKER_NS=openfaas;
fi
- if [ ! -z "$TRAVIS_TAG" ] ; then
export DOCKER_CLI_EXPERIMENTAL=enabled
export REGISTRY=docker.io;
./ci/registryLogin.sh $REGISTRY;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/gateway";
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/basic-auth-plugin";
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" armhf;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" arm64;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" ppc64le;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" windows;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" x86_64;
./watchdog/make_manifest.sh
docker push $DOCKER_NS/classic-watchdog:$TRAVIS_TAG
export REGISTRY=quay.io;
./ci/registryLogin.sh $REGISTRY;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/gateway";
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/basic-auth-plugin";
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" armhf;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" arm64;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" ppc64le;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" windows;
./ci/tagAndPush.sh "$REGISTRY" "$DOCKER_NS/classic-watchdog" x86_64;
fi
before_deploy:
- ./ci/hashgen.sh
deploy:
provider: releases
api_key:
secure: "SVwbfJO008Z4TCcGPyjIPsOUcN+W9k8Pi4CFRFznskCd+qXbZd/so72ZdBSDUhR/s1U1+NrrVq43fW18aOI6YdPJgSOU1dJyR+EX5833U+B5yIosjEd0PiU9zcby8BB2k/RIEXgu/qWg7DzeZB50Jd8YOJqW5j8qX9qdl5GI09+8siGCUgoiXRquv/VC2Ucdh+V/+Twlm0ytC9IcvIuww5dhJQUsKGLfNRcykioG/RWnqNoJZ5afZ0s/FgOEO4fVmklMRQq5+07Jnub1HW308lvXiO7Utre4c8n8mOTjHxaNbroHggsdq/8KyPIHLukqc1t0iY7GdutangbY14YVcykZ3XcoCfT660Rtz/RfxEiVsrJ8rdjCLIKypw2wAKM1ZH+i6vdYVm+RAoMO83Qsxbfd+NFaS2UMSU+woPHWJ28oeeoPx0Vt3h2K+J6fWMVg5CBb7cN0TMcSFTZpJSgudnGj1k8P4hTms6Ey+gOolBqcJhwcrAvAVfpNcdiPPDkH2N7ME57Dolr80eAr09fpoaIffHFj71syItEAjBC60X30HzUsf+lyGh8gG9R2yAjMSLksrzSyvta6vWlVBNenxpIJdXi6E/JYCamQule4eNajjNU3Yeyzhy4OD4KTAXvadmvsmRaFS7HOS8kBMWEwLHUw61TyG2+1crveYqhJHOs="
file:
- ./watchdog/fwatchdog
- ./watchdog/fwatchdog-armhf
- ./watchdog/fwatchdog-arm64
- ./watchdog/fwatchdog-ppc64le
- ./watchdog/fwatchdog.exe
- ./watchdog/fwatchdog.sha256
- ./watchdog/fwatchdog-armhf.sha256
- ./watchdog/fwatchdog-arm64.sha256
- ./watchdog/fwatchdog-ppc64le.sha256
- ./watchdog/fwatchdog.exe.sha256
skip_cleanup: true
on:
tags: true