Skip to content

Commit

Permalink
single step CI optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Mar 1, 2020
1 parent 0717b9c commit 1215660
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
jobs:
build:
test:
docker:
- image: docker:stable-git
working_directory: /code
Expand All @@ -19,13 +19,6 @@ jobs:
echo $HUB_KEY | docker login -u $HUB_USERNAME --password-stdin
docker tag paper_trail "${DOCKER_TARGET_REMOTE}"
docker push "${DOCKER_TARGET_REMOTE}"
test:
docker:
- image: docker:stable-git
working_directory: /code
steps:
- checkout
- setup_remote_docker
- run:
name: Pull and run a docker container
command: |
Expand All @@ -39,9 +32,6 @@ workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build
- test

# https://circleci.com/blog/how-to-build-a-docker-image-on-circleci-2-0/

0 comments on commit 1215660

Please sign in to comment.