Skip to content

Add workflow for automated Docker builds on project changes #195

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

Closed

Conversation

marwan37
Copy link
Contributor

@marwan37 marwan37 commented Apr 13, 2025

This PR adds a GitHub Actions workflow that automatically builds and pushes Docker images to our zenmldocker account on DockerHub when changes are made to project directories.

How the workflow works:

  • Builds Docker images only for projects that have changes
  • Uses path-ignore pattern to exclude any root files and dirs that aren't project directories
  • Supports manual triggering for specific projects
  • Automatically generates Dockerfile.sandbox for projects that don't have one using the generate_sandbox_dockerfile.py script
  • Commits generated Dockerfiles back to the repository after successful builds (may need to set GITHUB_TOKEN in our repo settings if it's not already there)
  • Pushes images to DockerHub with appropriate tags

@marwan37 marwan37 added enhancement New feature or request CI/CD labels Apr 13, 2025
@marwan37 marwan37 removed the enhancement New feature or request label Apr 13, 2025
@marwan37
Copy link
Contributor Author

Closing this. Adding it to #196

@marwan37 marwan37 closed this Apr 20, 2025
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.

None yet

1 participant