forked from h2non/imaginary
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
41 lines (32 loc) · 968 Bytes
/
.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
language: go
services:
- docker
dist: trusty
go:
- 1.12.x
- 1.11.x
env:
global:
- GOLANG_VERSION="${TRAVIS_GO_VERSION}"
- IMAGINARY_VERSION="${TRAVIS_TAG:-dev}"
matrix:
- LIBVIPS=8.7.3
- LIBVIPS=8.7.4
- LIBVIPS=8.8.0
- LIBVIPS=8.8.1
before_install:
- docker pull h2non/imaginary:latest || true
install:
- "true"
script:
- docker build --pull --cache-from h2non/imaginary:latest --build-arg GOLANG_VERSION="${GOLANG_VERSION%.x}" --build-arg LIBVIPS_VERSION="${LIBVIPS}" --build-arg IMAGINARY_VERSION="${IMAGINARY_VERSION#v}" --tag h2non/imaginary:${IMAGINARY_VERSION} .
# before_deploy:
# - docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
# deploy:
# provider: script
# script:
# - docker tag h2non/imaginary:${IMAGINARY_VERSION} latest
# - docker push h2non/imaginary:${IMAGINARY_VERSION}
# - docker push h2non/imaginary:latest
# on:
# condition: "${TRAVIS_TAG} =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$"