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(): Add GitHub Actions Workflow to Build and Save Docker Image as Artifact #16

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

Conversation

legendkartik45
Copy link

@legendkartik45 legendkartik45 commented Jan 4, 2025

This pull request introduces a GitHub Actions workflow that builds the project's Docker image and saves it as an artifact for easy reuse across development and testing workflows.

image

Key Changes:

  • Automated Docker Build: The workflow dynamically builds a Docker image tagged with the branch name and short commit hash for better traceability (e.g., main-1a2b3c4).
  • Artifact Storage: The built Docker image is saved as a compressed tarball (.tar.gz) and uploaded as a GitHub artifact, enabling developers or CI/CD pipelines to download and reuse the image without rebuilding it.
  • Dynamic Tagging: Utilizes GitHub's context variables to incorporate branch names and commit hashes into the image tag, making it easier to associate images with specific code changes.

@legendkartik45 legendkartik45 changed the title Add GitHub Actions Workflow to Build and Save Docker Image as Artifact feat: Add GitHub Actions Workflow to Build and Save Docker Image as Artifact Jan 4, 2025
@legendkartik45 legendkartik45 changed the title feat: Add GitHub Actions Workflow to Build and Save Docker Image as Artifact feat(): Add GitHub Actions Workflow to Build and Save Docker Image as Artifact Jan 4, 2025
@legendkartik45
Copy link
Author

legendkartik45 commented Jan 4, 2025

@ericciarla do let me know your thoughts on this PR and we can also plan to introduce tests and add a test pipeline in future to ensure minimal bugs as the code grows :)

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.

1 participant