-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
36 lines (31 loc) · 1.62 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
dist: bionic
language: bash
services: docker
env:
global:
- IMAGE_NAME=jamiehewland/alpine-pypy-build
- REGISTRY_USER=jamiehewland
- secure: "GyOz14YYPN9fkPXGfZHVap/eYYuzCwsJn0t6QuM+ek31gqtnNVNQ2Qdfv9wz0G3EnNuXzgE75vhdOxKIyx5QM5r5XCjtj6joBdTQgB0LcjpDaLyHTRJkQagYFgwc1Ln1uwvfSn4DZ4YmdvjnhzFyzForbnO+HRBYjm1y/jcmhblDftBTPAksBmCbRCT25goc6gRAhlqEf9f+Sw5klWbO/TRH7qNH/gB1+Er7w/FX0m0UVrOzz6OosolAiXlEcAF9bNXUGDjpMp2+nJRhyr8N5HQrrqR/Rhnn+/HGq5vksSxVZNkZ5bk/7Cj0fX1mQskVadGZigFmnUkYcBGVlKYUBYVu2BV6IVa07ik1kbFA/Fi9kJQNHW4gw2iloCOldDKZnLnN4X/p5D4fWhrlQFd6/m7eDITG+5fmN8ttez7IiTfLEyMlO3Kmh+ZAqoFmPy8368UCAOVAGcdhYqUwVkxN7mWZtgLKl6vLsb/JwAK+9YACKxRBlcoR3pBbOaw8cKqDGUIAu65vQtbC65klTk5vNZKah33VKFbLXVUCeknVx1qi18OannSOoXeApXID48YqblNwKglwBo+4KnGdlM592boh0hV2cfpIRiyoD9MXJionCYQu9jE+VtiT43s0ctYc3qizmv0cCi0aGk4fq3hf5hQEEgOl8AsSLgRDcKVl4Bc="
matrix:
- VERSION=2.7/alpine3.11 VARIANT=
- VERSION=2.7/alpine3.11 VARIANT=bootstrap
- VERSION=3.6/alpine3.11 VARIANT=
- VERSION=3.6/alpine3.11 VARIANT=bootstrap
before_script:
- cd "$VERSION"
- dockerfile="${VARIANT:+$VARIANT/}Dockerfile"
- version="$(awk '$2 == "PYPY_VERSION" { print $3; exit }' "$dockerfile")"
- image="$IMAGE_NAME:${VERSION%/*}-$version${VARIANT:+-$VARIANT}-${VERSION#*/}"
- echo "Building image '$image' from Dockerfile at $dockerfile"
- docker pull "$image" || true
script:
- docker build --pull --cache-from "$image" -t "$image" -f "$dockerfile" .
after_script:
- docker images
before_deploy:
- docker login --username "$REGISTRY_USER" --password "$REGISTRY_PASS"
deploy:
provider: script
script: docker push "$image"
on:
branch: master