Skip to content
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

Merged
merged 3 commits into from Apr 24, 2018
Merged

Conversation

mostlygeek
Copy link
Contributor

@mostlygeek mostlygeek commented Mar 13, 2018

Replacement for PR #33.
Works in CircleCI 2.0 now :)

Tested that tagging triggers a deployment and it works

@mostlygeek mostlygeek self-assigned this Mar 13, 2018
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
Copy link
Contributor

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

# 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"
Copy link
Contributor

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
Copy link
Member

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)

Copy link
Contributor Author

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. :)

@mostlygeek mostlygeek merged commit 09475d1 into master Apr 24, 2018
@mostlygeek mostlygeek deleted the circle-2-workflow branch April 24, 2018 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants