Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sudo: required
dist: trusty
group: edge
language: ruby
services:
- docker
cache:
directories:
- $HOME/stack-cache
- $HOME/stack-work
install:
- mkdir -p $HOME/stack-cache
- mkdir -p $HOME/artifacts
- mkdir -p $HOME/stack-work
- cd web && docker build --tag cirrusbuild .
script:
- docker run -v $HOME/stack-cache:/root/.stack -v $HOME/.stack-work:/build/.stack-work -v $HOME/artifacts:/root/.local/bin cirrusbuild /bin/sh -c 'cd /build && stack install --allow-different-user'
- cp $HOME/artifacts/jupyter-proxy deploy/jupyter-proxy
- mkdir -p deploy/config
- cp config/{routes,settings.yml,models,favicon.ico,robots.txt} deploy/config/
- cp -R static deploy/
- cd deploy && docker build --tag eanalytica/cirrus-web:latest .
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker push eanalytica/cirrus-web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment