Skip to content

Commit

Permalink
Add .reaction/ci/config.yml
Browse files Browse the repository at this point in the history
- for Reaction Platform CI configuration
  • Loading branch information
aaronjudd committed Oct 2, 2017
1 parent 5b58ae8 commit 52f71dc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .reaction/ci/config.yml
@@ -0,0 +1,28 @@
image: docker:latest

services:
- docker:dind

variables:
DOCKER_HOST: tcp://localhost:2375

before_script:
- docker info
- docker login -u "$CI_REGISTRY_USER" -p "$CI_BUILD_TOKEN" "$CI_REGISTRY"

testing:
stage: deploy
script:
- docker build --build-arg TOOL_NODE_FLAGS="--max-old-space-size=2048" -t "$CI_REGISTRY_IMAGE:${CI_COMMIT_REF_SLUG}" .
only:
- branches
except:
- master

master:
stage: deploy
script:
- docker build --build-arg TOOL_NODE_FLAGS="--max-old-space-size=2048" -t "$CI_REGISTRY_IMAGE:latest" .
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- master

0 comments on commit 52f71dc

Please sign in to comment.