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 .tar.gz.zip support on import-db command - Github actions #6011

Open
1 task done
bmartinez287 opened this issue Mar 24, 2024 · 6 comments
Open
1 task done

Add .tar.gz.zip support on import-db command - Github actions #6011

bmartinez287 opened this issue Mar 24, 2024 · 6 comments

Comments

@bmartinez287
Copy link
Collaborator

bmartinez287 commented Mar 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

Github actions generates a .tar.gz.zip database artifact.
It be great if I was able to do import-db dev-db.tar.gz.zip but instead i have to unzip it as that many compression type won't generate be read by the import-db command.

Describe your solution

Add support for tar.gz.zip on import-db

Describe alternatives

No response

Additional context

No response

@rfay
Copy link
Member

rfay commented Mar 24, 2024

What github action are you talking about?

@bmartinez287
Copy link
Collaborator Author

bmartinez287 commented Mar 24, 2024

https://github.com/actions/upload-artifact
Screenshot 2024-03-24 at 11 18 49 AM
Screenshot 2024-03-24 at 11 20 05 AM

.tar.gz is supported but when i click on that link it also makes it zip file at download time.
making the file a tar.gz.zip

https://github.com/actions/upload-artifact?tab=readme-ov-file#zip-archives

@rfay
Copy link
Member

rfay commented Mar 24, 2024

The question is.... Where are you doing this? And why? What is this database?

@bmartinez287
Copy link
Collaborator Author

bmartinez287 commented Mar 24, 2024

is a Drupal database that is store on AWS due to FedRAMP compliance. So the devops team setup an abstraction on which we can trigger a db-backup through github actions ui and get a copy of that environments db. There are multiple environments including dev, stage and prod but also a couple of extra ones.
You may be wondering why I'm not using the rsync provider for it. https://github.com/ddev/ddev/blob/master/pkg/ddevapp/dotddev_assets/providers/rsync.yaml.example
The main reason is that due to security considerations, the client would rather us do it through the UI on github.

@rfay
Copy link
Member

rfay commented Mar 24, 2024

How about adding a provider that gets it from github? Should be easy to adapt the provider for that.

@bmartinez287
Copy link
Collaborator Author

Interesting, that's an approach I didn't think would be possible but I will look into it.

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

No branches or pull requests

2 participants