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

Add PUSH_IMAGE var to allow image to be pushed #900

Closed
wants to merge 1 commit into from
Closed

Conversation

jmrodri
Copy link
Contributor

@jmrodri jmrodri commented Apr 19, 2018

There are quite a few times I run make build-image ORG=jmrodri and I
immediately call docker push afterwards. This allows me to let the
makefile do it if I want it to.

There are quite a few times I run make build-image ORG=jmrodri and I
immediately call docker push afterwards. This allows me to let the
makefile do it if I want it to.
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 19, 2018
Copy link
Member

@djzager djzager left a comment

Choose a reason for hiding this comment

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

Other than my one comment LGTM

@@ -2,6 +2,7 @@ REGISTRY ?= docker.io
ORG ?= ansibleplaybookbundle
TAG ?= latest
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 if this is something we want then we have to make it more dummy proof. At a minimum I think you must set TAG to be something like:

TAG ?= $(shell git rev-parse short HEAD)

That will prevent people from accidentally using the makefile to break the "latest" broker.

@jmrodri jmrodri closed this Apr 20, 2018
@jmrodri jmrodri reopened this Apr 20, 2018
@jmrodri jmrodri closed this Apr 24, 2018
@jmrodri jmrodri deleted the allow-push branch May 31, 2018 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. tech-debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants