Skip to content

Instantly share code, notes, and snippets.

@cschiewek
Created February 23, 2016 19:02
Show Gist options
  • Save cschiewek/c6748ac8124196c09d7b to your computer and use it in GitHub Desktop.
Save cschiewek/c6748ac8124196c09d7b to your computer and use it in GitHub Desktop.
semaphore ci deploy script
# Grab exrm release directory from cache
if [ -e $SEMAPHORE_CACHE_DIR/rel ]; then mv $SEMAPHORE_CACHE_DIR/rel . ; fi
nvm use 5.3
mix local.hex --force
MIX_ENV=prod mix deps.get --only prod
MIX_ENV=prod mix mandrag.deploy
# Cache updated release directory
mv rel $SEMAPHORE_CACHE_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment