Skip to content

Instantly share code, notes, and snippets.

@wizact
Created July 29, 2018 04:58
Show Gist options
  • Save wizact/b705199c88319e77df3d599f24837211 to your computer and use it in GitHub Desktop.
Save wizact/b705199c88319e77df3d599f24837211 to your computer and use it in GitHub Desktop.
machine:
node:
version:
0.10.33
services:
- docker
checkout:
post:
- chmod +x ./fix_dockerfile.sh && ./fix_dockerfile.sh
- chmod +x ./deploy.prod.sh
- chmod +x ./deploy.test.1.sh
dependencies:
post:
- sudo pip install --upgrade awscli
- sudo apt-get update && sudo apt-get install jq
- curl -L -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5rc1/jq-linux-x86_64-static && chmod +x ~/bin/jq
- curl -L https://github.com/docker/compose/releases/download/1.5.0/docker-compose-`uname -s`-`uname -m` > ../bin/docker-compose && chmod +x ../bin/docker-compose
- docker build --rm=false -t acmeinc/sample-api:$CIRCLE_SHA1 . | cat
test:
override:
- npm test
deployment:
prod:
branch: release
commands:
- ./deploy.prod.sh
test:
branch: test.1
commands:
- ./deploy.test.1.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment