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 docker images to docker hub (fixes #71) #75

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JonZeolla
Copy link

This adds a github action which will build and publish the docker image to docker hub.

Before merging, consider configuring the github repo with credentials for DOCKERHUB_USERNAME and DOCKERHUB_TOKEN

I am also open to pinning the commit hashes for the use of the third party actions of docker/login-action, docker/build-push-action , peter-evans/dockerhub-description.

@google-cla google-cla bot added the cla: yes label Feb 24, 2021
@JonZeolla JonZeolla changed the title Publish docker images to docker hub Publish docker images to docker hub (fixes #71) Feb 24, 2021
.github/workflows/commit.yml Outdated Show resolved Hide resolved
@JonZeolla JonZeolla requested a review from magl0 February 25, 2021 04:29
Copy link
Collaborator

@magl0 magl0 left a comment

Choose a reason for hiding this comment

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

LGTM. I will start our importing workflow. It might take a few hours to get reviewed internally.

.github/workflows/release.yml Show resolved Hide resolved
.github/workflows/release.yml Show resolved Hide resolved
@magl0
Copy link
Collaborator

magl0 commented Feb 25, 2021

Hi @JonZeolla, this PR probably needs more work.

Internal policy requires us to move dockerhub images to gcr.io. Since this image is new, we should directly host them on GCR. Tsunami team will set up a hosting GCP project and push images there. If you have bandwidth, can you update the workflow in this PR to publish to GCR instead (an example, please all the GKE stuff). Otherwise Tsunami team can take the remaining work over. Sorry for the additional complexity.

In addition, we are currently waiting for our internal reviews on the prebuilt docker images. This can take a while before the first public build.

@gaby
Copy link
Contributor

gaby commented Feb 26, 2021

@magl0 Would it be possible for the image to be published to both gcr.io and docker hub?

@magl0
Copy link
Collaborator

magl0 commented Feb 26, 2021

@magl0 Would it be possible for the image to be published to both gcr.io and docker hub?

Hi, technically it is possible to publish to both registries. But we are migrating away from docker hub and and in the future gcr.io will be the only option. We try to avoid doing throw-away work if possible to avoid maintenance burden.

@gaby
Copy link
Contributor

gaby commented Feb 26, 2021

@magl0 Would it be possible for the image to be published to both gcr.io and docker hub?

Hi, technically it is possible to publish to both registries. But we are migrating away from docker hub and and in the future gcr.io will be the only option. We try to avoid doing throw-away work if possible to avoid maintenance burden.

Makes sense, specially since gcr.io is owned by Google.

@RiRa12621
Copy link

hey @magl0 if this it still open, I could probably try to get a new PR up that publishes to gcr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants