forked from kubevirt/common-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (64 loc) · 1.99 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
58
59
60
61
62
63
64
sudo: required
dist: bionic
language: python
branches:
only:
- master
- /^v[0-9]/
env:
global:
- SSP_REPO="kubevirt-ssp-operator"
- NEW_SSP_REPO="ssp-operator"
- SSP_OWNER="kubevirt"
- SSP_REPO_URL="[email protected]:${SSP_OWNER}/${SSP_REPO}.git"
- NEW_SSP_REPO_URL="[email protected]:${SSP_OWNER}/${NEW_SSP_REPO}.git"
- CI_CONFIG_ADMISSION_WEBHOOK=1
jobs:
include:
- stage: Build and Deploy
name: Build and Deploy to GitHub
before_script: skip
# released artifacts MUST always have REVISION=1
script: make release "VERSION=$TRAVIS_TAG" REVISION=1
before_deploy:
- touch ssp-operator-deploy-key
- touch ssp-new-operator-deploy-key
- openssl aes-256-cbc -K $encrypted_02d89e1b05ff_key -iv $encrypted_02d89e1b05ff_iv -in ssp-operator-deploy-key.enc -out ssp-operator-deploy-key -d
- openssl aes-256-cbc -K $encrypted_8aeaa1f1e115_key -iv $encrypted_8aeaa1f1e115_iv -in ssp-new-operator-deploy-key.enc -out ssp-new-operator-deploy-key -d
- eval "$(ssh-agent -s)"
- chmod 600 ssp-operator-deploy-key
- chmod 600 ssp-new-operator-deploy-key
- ssh-add ssp-operator-deploy-key
- ssh-add ssp-new-operator-deploy-key
deploy:
- provider: releases
api_key: "$GITHUB_TOKEN"
file: dist/common-templates-$TRAVIS_TAG.yaml
skip_cleanup: true
name: $TRAVIS_TAG
on:
tags: true
repo: kubevirt/common-templates
- provider: script
script: bash -x travis_ci/release-templates-ssp-operator.sh
skip_cleanup: true
name: Deploy to SSP-operator
on:
tags: true
repo: kubevirt/common-templates
addons:
apt:
sources:
- sourceline: 'ppa:ansible/ansible'
packages:
- qemu-utils
- libosinfo-1.0
- gir1.2-libosinfo-1.0
- intltool
- libgirepository1.0-dev
install:
- python3 -m pip install PyYAML
- python3 -m pip install ansible
- python3 -m pip install jq
- python3 -m pip install PyGObject
- python3 -m pip install six