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

feat(docker): push dragonfly image to gcp artifact registry #4716

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Abhra303
Copy link
Contributor

@Abhra303 Abhra303 commented Mar 6, 2025

Fixes #4603. I have tested the docker-dev-release.yml. Not sure how to test the docker-release-artifact-registry.yml workflow. Do I have to open the PR from dragonflydb/dragonfly repo to test the workflow?

I also need to add gcp service account key in the repo secrets.

Abhra303 added 9 commits March 6, 2025 12:53
Signed-off-by: Abhradeep Chakraborty <[email protected]>
Signed-off-by: Abhradeep Chakraborty <[email protected]>
Signed-off-by: Abhradeep Chakraborty <[email protected]>
Signed-off-by: Abhradeep Chakraborty <[email protected]>
Signed-off-by: Abhradeep Chakraborty <[email protected]>
Signed-off-by: Abhradeep Chakraborty <[email protected]>
Signed-off-by: Abhradeep Chakraborty <[email protected]>
Signed-off-by: Abhradeep Chakraborty <[email protected]>
@Abhra303 Abhra303 requested a review from romange March 6, 2025 11:20
Signed-off-by: Abhradeep Chakraborty <[email protected]>
uses: docker/login-action@v3
with:
registry: us-central1-docker.pkg.dev
username: _json_key
Copy link
Collaborator

Choose a reason for hiding this comment

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

does it have to be _json_key ? Can we have a user "github_actions" for example?


Copy link
Collaborator

Choose a reason for hiding this comment

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

seems like lots of code duplication. Can you introduce a bash function that runs docker manifest create and push?

fi
echo "Redis ping succeeded"

for image_tag in "${image_tags[@]}"; do
Copy link
Collaborator

Choose a reason for hiding this comment

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

really not an expert. can we build images like before and just create and push manifests to both registries in the end?
why do we need to change anything here?

@@ -0,0 +1,161 @@
name: Docker Release to GCS Artifact Registry
Copy link
Collaborator

Choose a reason for hiding this comment

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

why we needed to duplicate the release pipeline? can we just do it in the last step of docker-release2?

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.

Please upload dragonfly at docker hub
2 participants