New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to use CircleCI 2.0 configuration #35
Conversation
.circleci/config.yml
Outdated
docker login -u $DOCKER_USER -p $DOCKER_PASS | ||
docker tag app:build ${DOCKERHUB_REPO}:latest | ||
docker push ${DOCKERHUB_REPO}:latest | ||
elif [ ! -z "$CIRCLE_TAG" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use ${curly} syntax for consistency
.circleci/config.yml
Outdated
# required since Workflows do not have the same remote docker instance. | ||
- run: | ||
name: docker save app:build | ||
command: mkdir -p /cache ; docker save -o /cache/docker.tar "app:build" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove space before semicolon
jobs: | ||
build: | ||
docker: | ||
- image: docker:18.02.0-ce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should stick w/ the latest stable: 17.12.1-ce. 18.02.0 is an edge release and probably not great for the long term (I imagine when the 18 line goes stable it'll be on a later minor revision)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it matters because this is meant to be just an example repo of how to do things. No matter what it'll eventually be out of date. :)
Replacement for PR #33.
Works in CircleCI 2.0 now :)
Tested that tagging triggers a deployment and it works