forked from hasadna/knesset-data-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 3.1 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
language: bash
sudo: required
env:
global:
- secure: "RcUhhcHKtvQ54GBLY+GN1j9ufU+59WucghYgVHyZdMlUWROic2SAhxkaOVQdY1j82Qm3cL0EQqAnJl2JtZhNf3x76OmOZeWyLWln2lDki/MR15SQEKg4KyveQSJauITLtdRsCUpjmMPrEnbjAU0f3pmxycoymN7xpPTAzBhXz3VM/h0OKFz6h5tgNEXWA4Cg1Rw2/M8/NQnz6iZb8AzT4acH3ENCrQ3PQr+jSAo/RYdK7HEI41Wxfn4F7XPd+w763pEbmm9tp+UVnkfYBd4DLNOW1vrdail0v8euUU7ynhCc/yHnOhXh1g9A7+Lj1t+1e+OXT43SnH4AME4tBAmDipTjqEJrA/rMyKmxRJzpupJcwwUkgKw6Tz4g0Zfmg/335aADCSd5ae9CJ03jbyIZbLDjer/EFKyP45mRfq/+/L4GLNOhpWXLqWNRWwwEp2QH3PcenjCxw/DhhZluWkygRKfGMLmM97gncye5wwxwkN9/bb0tG2htcCYHfX28Dqc+CPil8C5U9FssUGa8rozCMt4o/7XFEKPIv8C9gSg2kRq6YcZ2VHy7Tep/KqyU2mv+0twGkSBYDN0/a0zxnAGNwfYHHxkIOKepxCVqu7NFZyMGjLmV6VI5iCaSBuoMzU5B8E/7jWHsi6SpDdEfBs/LlEywmT54WmdcULP6KK2w05s="
- secure: "s6VU8+FzGlBHsQ5cRk9XpU+LOpeX6Yn0nlpZrUwD/+F7aXOO9CjI1W9MTP7PMnBQXOTaL+agG1eTCy0oO40tOPdLtH4eEw1ixCN4VsS0xSQPgynsRb9XKdWs42xyHJuJCeY37Gydxhuyl7trHDiYYUSUxlOkostFlWaXDbe5FJSIVxhSGyKMioz/Kk5ek/TZFF2saW3G3b22UENSBgLxID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osc/Km+yXQSNW2kBPdnzJFGRYnI0K8GuG+FVuYm1HMAjfX2gGYF0/33FxGLGEjGD8="
- K8S_OPS_REPO_BRANCH=master
- K8S_OPS_REPO_SLUG=OriHoch/knesset-data-k8s
- DOCKER_IMAGE=orihoch/knesset-data-pipelines
- DEPLOY_YAML_UPDATE_FILE=environments/production/values.auto-updated.yaml
- DEPLOY_VALUES_CHART_NAME=pipelines
- DEPLOY_VALUES_IMAGE_PROP=image
- DEPLOY_COMMIT_MESSAGE="automatic update of knesset-data-pipelines"
- DEPLOY_GIT_EMAIL=knesset-data-deployer@null.void
- DEPLOY_GIT_USER=knesset-data-deployer
services:
- docker
script:
- curl -s https://raw.githubusercontent.com/hasadna/hasadna-k8s/master/apps_travis_script.sh > .travis.sh
- |
export FORCE_RECREATE=`echo $TRAVIS_COMMIT_MESSAGE | grep -q -- --force-recreate && echo ' --force-recreate'`;
export DEPLOY_COMMIT_MESSAGE="${DEPLOY_COMMIT_MESSAGE}${FORCE_RECREATE}";
bash .travis.sh script
deploy:
skip_cleanup: true
provider: script
script: bash .travis-deploy.sh
on:
branch: master
condition: |
`echo "${TRAVIS_COMMIT_MESSAGE}" | grep -q -- --no-deploy && echo 1` != "1"