Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Commit

Permalink
CircleCI - Build :nightly image from master
Browse files Browse the repository at this point in the history
Fixes #40
  • Loading branch information
abitrolly authored Jan 15, 2018
1 parent 1fdcda7 commit d2248b8
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ jobs:
- ~/.gradle/caches/
- ~/.gradle/wrapper/

deploy_search_api_nightly:
<<: *default_container
steps:
- checkout
- setup_remote_docker:
version: 17.05.0-ce
- run:
name: Build cyber search api image (nightly)
command: |
docker build -t build/cs-search-api -f ./devops/search-api/search-api ./
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker tag build/cs-search-api cybernode/cs-search-api:nightly
docker push cybernode/cs-search-api:nightly
deploy_search_api_image:
<<: *default_container
Expand Down Expand Up @@ -113,6 +126,15 @@ workflows:
filters:
tags:
only: /.*/
# deploy :nighly image from master
- deploy_search_api_nightly:
filters:
branches:
only:
- master
requires:
- build_project
# deploy releases from tags
- deploy_search_api_image:
<<: *release_filter
requires:
Expand All @@ -124,4 +146,4 @@ workflows:
- deploy_address-service_image:
<<: *release_filter
requires:
- build_project
- build_project

0 comments on commit d2248b8

Please sign in to comment.