-
Notifications
You must be signed in to change notification settings - Fork 108
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
publish snapshot docker images #6
Conversation
.circleci/config.yml
Outdated
if [[ -n "${CIRCLE_TAG}" ]] ; then | ||
docker login -u "${DOCKERHUB_USERNAME}" -p "${DOCKERHUB_PASSWORD}" | ||
./godelw docker push | ||
./godelw docker push --tags=latest |
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.
Will this publish both a version and a latest
tag? I think we should be doing both, not just latest
.
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.
the new commit fixes this. i misunderstood the value in tags. its supposed to be the key in the tag-templates object: https://github.com/palantir/distgo/blob/master/distgo/config/internal/v0/configdocker.go#L89
.circleci/config.yml
Outdated
@@ -87,9 +87,13 @@ jobs: | |||
- deploy: | |||
name: Publish | |||
command: | | |||
if [[ "${CIRCLE_BRANCH}" == "develop" ]]; then | |||
docker login -u "${DOCKERHUB_USERNAME}" -p "${DOCKERHUB_PASSWORD}" | |||
./godelw docker push --tags=snapshot,version |
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 think we want to publish only snapshot
in this case, to avoid polluting DockerHub with individually tagged development versions.
discussed via slack. merging.