chore: configure CircleCI to build and publish ...
...to Docker Hub
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
-version: 2
+version: 2.1
+
+orbs:
+ docker-publish: circleci/docker-publish@0.1.6
jobs:
build:
@@ -61,6 +64,28 @@ jobs:
paths:
- '*'
+ - persist_to_workspace:
+ root: ~/repo/app/ui-react
+ paths:
+ - Dockerfile
+ - .dockerignore
+ - 'nginx*'
+ - syndesis/build
+
+ publish:
+ executor: docker-publish/docker
+ working_directory: ~/repo/app/ui-react
+ steps:
+ - attach_workspace:
+ at: ~/
+ - setup_remote_docker
+ - docker-publish/check
+ - docker-publish/build:
+ extra_build_args: '--ulimit nofile=1024'
+ image: syndesis/syndesis-ui
+ tag: latest-react
+ - docker-publish/deploy
+
doc-deploy:
docker:
- image: circleci/node:10.13
@@ -158,7 +183,6 @@ jobs:
-X POST https://ghcommentbot.herokuapp.com/comment
workflows:
- version: 2
build:
jobs:
- build:
@@ -166,6 +190,13 @@ workflows:
branches:
ignore:
- gh-pages
+ - publish:
+ requires:
+ - build
+ filters:
+ branches:
+ only:
+ - master
- doc-deploy:
requires:
- build
