Skip to content

Instantly share code, notes, and snippets.

@sheki
Created January 22, 2016 00:34
Show Gist options
  • Select an option

  • Save sheki/60dbfd70af257d37b5bb to your computer and use it in GitHub Desktop.

Select an option

Save sheki/60dbfd70af257d37b5bb to your computer and use it in GitHub Desktop.
!/bin/bash -e
if [ ! "$CI" == true ]; then
echo "Not running in CI"
exit 1
fi
docker build --tag brightsolar/web-nginx:codeship_build_"$CI_BUILD_NUMBER" nginx/ && docker push brightsolar/web-nginx
docker build --tag brightsolar/web:codeship_build_"$CI_BUILD_NUMBER" --file Dockerfile.prod . && docker push brightsolar/web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment