Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Switch to calver autopopulated with chartpress #85

Merged
merged 2 commits into from
Mar 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ install:
- curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
- pip install --default-timeout=100 git+https://github.com/jupyterhub/chartpress.git
script:
- chartpress --commit-range ${TRAVIS_COMMIT_RANGE}
- chartpress --commit-range ${TRAVIS_COMMIT_RANGE} --tag `date +%y.%m.%d`
- git diff

deploy:
provider: script
skip_cleanup: true
script:
- bash deploy.sh
on:
branch:
- master
- provider: script
skip_cleanup: true
script: bash deploy.sh
on:
branch: master
tags: false
- provider: script
skip_cleanup: true
script: bash deploy.sh --tag `date +%y.%m.%d`
on:
branch: master
tags: true
3 changes: 1 addition & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ set -eu
openssl aes-256-cbc -K $encrypted_058f1ad78f7f_key -iv $encrypted_058f1ad78f7f_iv -in deploy-key.rsa.enc -out deploy-key.rsa -d
set -x
chmod 0400 deploy-key.rsa
docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}"
helm init --client-only
helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
helm repo update
helm dependency update pangeo
export GIT_SSH_COMMAND="ssh -i ${PWD}/deploy-key.rsa"
chartpress --commit-range ${TRAVIS_COMMIT_RANGE} --publish-chart --push
chartpress --commit-range ${TRAVIS_COMMIT_RANGE} --publish-chart $@
git diff
6 changes: 5 additions & 1 deletion pangeo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
apiVersion: v1
name: pangeo
version: v0.1.1
version: AUTO_POPULATED_BY_CHARTPRESS_AND_TRAVIS
description: An extention of jupyterhub with extra Pangeo resources
maintainers:
- name: Jacob Tomlinson (Met Office)
email: jacob.tomlinson@informaticslab.co.uk
- name: Joe Hamman (NCAR)
email: jhamman@ucar.edu
- name: Guillaume Eynard-Bontemps (CNES)
email: guillaume.eynard-bontemps@cnes.fr