Skip to content

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

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

dantevvp
Copy link
Contributor

Deprecate pushing of the image to GCR in favor of pushing to Dockerhub.

@dantevvp dantevvp requested review from a team, RubyBrewsday and f-moya and removed request for a team February 13, 2023 20:50
Comment on lines +6 to +8
ifndef RELEASE_TAG
override RELEASE_TAG = latest
endif
Copy link

Choose a reason for hiding this comment

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

Suggested change
ifndef RELEASE_TAG
override RELEASE_TAG = latest
endif
RELEASE_TAG ?= latest

Copy link

Choose a reason for hiding this comment

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

isn't that simpler ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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

Copy link

Choose a reason for hiding this comment

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

@dantevvp

this does not work when providing an empty string.

That's expected isn't it ? Why would you run make release RELEASE_TAG="" ?

@dantevvp dantevvp merged commit 179010e into master Mar 10, 2023
us.gcr.io/code-climate/codeclimate-sonar-php:b$CIRCLE_BUILD_NUM
docker push us.gcr.io/code-climate/codeclimate-sonar-php:b$CIRCLE_BUILD_NUM
make release RELEASE_TAG="b$CIRCLE_BUILD_NUM"
make release RELEASE_TAG="$(echo $CIRCLE_BRANCH | grep -oP 'channel/\K[\w\-]+')"
Copy link

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.

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