No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Gemfile
Gemfile.lock
README.md
deploy.rb

README.md

Madek - Nightly Data Deploy

This project lets us trigger deploys via Cider-CI with full data migration to test and staging-v3-pdata via a cron-job.

Setup

Clone this project, set the MADEK_API_LOGIN and MADEK_API_PASSWORD variables valid for ci.zhdk.ch. Call the following script from the cron-job.

42 21 * * * /home/madek-ci-api-user/nightly-deploy
#!/usr/bin/env bash
set -eux
LOGFILE=~/nightly-deploy.log
exec > $LOGFILE 2>&1
export PATH=${HOME}/.rubies/ruby-2.2.5/bin:$PATH
env > /tmp/env.output
gem install bundler
cd ${HOME}/madek_nightly-deploy-script/
bundle install
bundle exec ./deploy.rb