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

publish snapshot docker images #6

Merged
merged 5 commits into from
Oct 12, 2018
Merged

publish snapshot docker images #6

merged 5 commits into from
Oct 12, 2018

Conversation

jmcampanini
Copy link
Member

discussed via slack. merging.

if [[ -n "${CIRCLE_TAG}" ]] ; then
docker login -u "${DOCKERHUB_USERNAME}" -p "${DOCKERHUB_PASSWORD}"
./godelw docker push
./godelw docker push --tags=latest
Copy link
Member

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.

Copy link
Member Author

@jmcampanini jmcampanini Oct 12, 2018

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

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

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.

@jmcampanini jmcampanini merged commit cd0b867 into develop Oct 12, 2018
@jmcampanini jmcampanini deleted the jc/snapshot-dockers branch October 12, 2018 16:48
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