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

Auto update ':latest' tag from 'make docker-push' #44

Closed
wants to merge 1 commit into from

Conversation

dpordomingo
Copy link
Contributor

@dpordomingo dpordomingo commented Dec 18, 2017

Fixes #43 and Fixes bblfsh/web/issues/65
Required by https://github.com/src-d/backlog/issues/1074#issuecomment-351014012

If this PR is merged, make docker-push will update the :latest docker image tag automatically, pointing to the docker image just created by that target.

If the "auto update :latest tag" behavior is not desired for all projects already using ::docker-push target, an alternative would be to create (and push) the :latest tag from a new ::docker-push-latest target, and call it from the CI when needed.

@dpordomingo dpordomingo changed the title Update ':latest' tag Auto update ':latest' tag from 'make docker-push' Dec 18, 2017
Makefile.main Outdated
docker push $(DOCKER_REGISTRY)/$(DOCKER_ORG)/$${repository}:$(TAG); \
if [ $$? != 0 ]; then \
echo "Something went wrong pushing the image."; \
exit 1; \
fi; \
docker push $(DOCKER_REGISTRY)/$(DOCKER_ORG)/$${repository}:latest; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest do this in another rule, and this rule only be used when you are in Travis.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea! Thanks!
I'll do so this evening!

@dpordomingo
Copy link
Contributor Author

dpordomingo commented Dec 22, 2017

ok, this PR was superseded by #47

@dpordomingo dpordomingo reopened this Dec 22, 2017
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.

3 participants