-
Notifications
You must be signed in to change notification settings - Fork 6
QUA-958: Push images to Dockerhub instead of GCR #7
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,9 +1,18 @@ | ||||||||||
.PHONY: image test | ||||||||||
.PHONY: image test release | ||||||||||
|
||||||||||
IMAGE_NAME ?= codeclimate/codeclimate-sonar-php | ||||||||||
RELEASE_REGISTRY ?= codeclimate | ||||||||||
|
||||||||||
ifndef RELEASE_TAG | ||||||||||
override RELEASE_TAG = latest | ||||||||||
endif | ||||||||||
Comment on lines
+6
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. isn't that simpler ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this does not work when providing an empty string. Makefile takes empty strings as not null, so it'll end up not tagging the image as latest. The ifndef workaround lets us provide an empty string that will still be replaced with latest There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That's expected isn't it ? Why would you run |
||||||||||
|
||||||||||
image: | ||||||||||
docker build --rm -t $(IMAGE_NAME) . | ||||||||||
|
||||||||||
test: image | ||||||||||
docker run --rm -ti -w /usr/src/app -u root $(IMAGE_NAME) gradle clean test | ||||||||||
|
||||||||||
release: | ||||||||||
docker tag $(IMAGE_NAME) $(RELEASE_REGISTRY)/codeclimate-sonar-php:$(RELEASE_TAG) | ||||||||||
docker push $(RELEASE_REGISTRY)/codeclimate-sonar-php:$(RELEASE_TAG) |
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.
@dantevvp does this means we will be pushing images like
codeclimate-sonar-php:master
? if so which service will be using it ? I'm asking because I don't remember having seen an image tag:master
before.