forked from nunofgs/docker-octoprint
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (30 loc) · 781 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
42
sudo: 'required'
services:
- 'docker'
language: bash
install: true
env:
global:
- DOCKER_REPO=reloxx13/octoprint
before_install:
- chmod +x docker.sh
- ./docker.sh prepare
before_script:
- if [ ! -z "$TRAVIS_TAG" ]; then export BUILD_VERSION=$TRAVIS_TAG; else export BUILD_VERSION=$TRAVIS_BRANCH; fi
- echo "$BUILD_VERSION"
script:
# Build Docker images
- ./docker.sh build
# Test Docker images
- ./docker.sh test
# Push Docker images to Docker Hub
# Docker Login
- docker login -u=reloxx13 -p="$DOCKER_PASSWORD"
# Tag all images
- ./docker.sh tag
# Push all images
- ./docker.sh push
# Create and push manifest list
- ./docker.sh manifest-list
# Docker Logout
- docker logout