forked from kubevirt/machine-remediation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (57 loc) · 3.71 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
language: generic
sudo: required
dist: trusty
services:
- docker
before_install: docker pull docker.io/alukiano/mro-builder
install:
- git reset --hard
script:
- make generate
- if [[ -n "$(git status --porcelain)" ]] ; then echo "It seems like you need to run
`make generate`. Please run it and commit the changes"; git status --porcelain;
false; fi
- make bazel-tests
deploy:
- provider: script
script: docker login -u="${DOCKER_USER}" -p="${DOCKER_PASSWORD}" && CONTAINER_PREFIX=index.docker.io/kubevirt
CONTAINER_TAG=latest make bazel-push-images
skip_cleanup: true
on:
branch: master
- provider: script
script: docker login -u="${DOCKER_USER}" -p="${DOCKER_PASSWORD}" && CONTAINER_PREFIX=index.docker.io/kubevirt
CONTAINER_TAG=$TRAVIS_BRANCH make bazel-push-images
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^release.*$
- provider: script
script: docker login -u="${DOCKER_USER}" -p="${DOCKER_PASSWORD}" && CONTAINER_PREFIX=index.docker.io/kubevirt
CONTAINER_TAG=$TRAVIS_TAG make bazel-push-images
skip_cleanup: true
on:
tags: true
- provider: script
script: CONTAINER_PREFIX=index.docker.io/kubevirt CONTAINER_TAG=$TRAVIS_TAG make generate
skip_cleanup: true
on:
tags: true
- provider: releases
skip_cleanup: true
api_key:
secure: "ctWuRUf7LvZSylWveiTIHre200iS1pR5yK8mmkKj56Ra1JlgR5m0HpAAWbBJL9DaXMmhwGyu9A1h99hXBNPetKRGniyQO2LUiXNFEhL3XZarF/fiX8aZOKBLTfylUfx8r1stHvSYg5UTADksHPO2K9/Zezf9vJIi4M2y3LiAAzI23FngNCPJSm00DsWmK21zCzNg1wwjpXjCDBP9ZXcrKFZ+Ug8jIqO9zRIPNYgE/T8SkJLcwf9w+GaDLe5j2/lpFvdmFZD5WBuWyxEOX2UCGwqMhhvrn6RYLMGPlq5nG8HJYztDMLILUllPQ/FyivZWecWG9GuIuYuutyMq7byME5F+eFYC3ky54GPB31D2CQm9GjkNwIwr1s3U/nOGBXXmuBPpeuyFqYklUhEr+47uvIbb2NgipkKsPkQSwvpLFBbO3j+4iaHy130N6ZHLHGfb6yFX+XN7Qq3vQ3wKMKd/8XnScjmWUbOcw0TnpvVfUAKzJ/27UfMt/KYvbfL8rBMvcRaGVyjKMqAc/qGj/st+jcyyOR5zstJ3Vm3uSrirCJoLLJ2LKp8LzKGv+07QRRgzvMBk1uCCD5z2ElGoVjUBXmRnDCMsIZDOjmBB2sW/xv5gfnxX3gRtuJ9h1YGjoixpn1BE7b7g9lXgeI+abC4J6kRq8LwX88B6p4yK+xQCrOE="
file:
- _out/manifests/release/machine-remediation-operator.$TRAVIS_TAG.yaml
- _out/manifests/release/machine-remediation-operator-cr.$TRAVIS_TAG.yaml
- _out/manifests/release/machine-remediation-operator-csv.$TRAVIS_TAG.yaml
prerelease: true
overwrite: true
name: "$TRAVIS_TAG"
on:
repo: kubevirt/machine-remediation-operator
tags: true
env:
global:
- secure: fzd4YkojXC9TrUQlYWb/bAgHYByIB5IEJaCwA9qTfGwBky8lcLUNv2pwnRSs6i9LPVe9XIxIZrlG+6kKUlnG7J+quNqSQsMQcq9Qx6uS+cRUMq1RreF3xfWHk2AJjheiQeD3+vKxgohlfcQHbvgDFeoIguISWMNEygV9ZUvX5S+cltcmrTxEyd1XTBazBjrwooam2aNmUgS2CoVt4+ByXFSR5vHZ77CMX8Q6ECp/Ke+l2vOBe04JpBwl78Y349ZRvbIhwTlPOvQcg0spZQCg3cmN6B1U5ptQw/fWPLX0r70oxyLm4fP6siNeEDZLB1Nw+7K22nQK8Ck9kz3nvfymz60ha1hEFeXRqYFM3ZH8GiV34VUtVCY+CaTSlvKO7KJ5zUAhC9i5c/skZH0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