forked from stolostron/build-harness-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 759 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
#
# Build and push a docker image of the build harness and extensions
#
os:
- linux
language: python
python: "3.7"
services:
- docker
env:
global:
# Required
- OS=linux
stages:
- build
jobs:
include:
- stage: build
name: "Build the image and push it"
script:
- |
docker build --tag quay.io/open-cluster-management/build-harness:latest .
if [ "$TRAVIS_REPO_SLUG" == "open-cluster-management/build-harness-extensions" ]; then
if [ "$TRAVIS_EVENT_TYPE" != "pull_request" ]; then
docker login quay.io/open-cluster-management -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker push quay.io/open-cluster-management/build-harness:latest
fi
fi