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

Refine Docker Image Tagging Strategy to Enhance Stability in Releases #19

Closed
Fovty opened this issue Apr 16, 2024 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@Fovty
Copy link
Member

Fovty commented Apr 16, 2024

Issue

Adjustments in Docker Image Tagging and Building Strategy

Problem to Solve

The current Docker build pipeline in the docker-build.yml automatically tags main branch commits with "latest". This practice can lead to unstable versions being tagged as "latest", which are then pulled and deployed by various systems automatically. We need to ensure that only stable, tested versions are marked as "latest".

Affected Product/Feature: Docker image tagging and deployment strategy in the CI/CD pipeline.

Further Details

This issue impacts how our Docker images are built and tagged during CI/CD workflows. Changing this would:

  • Ensure only stable releases receive the "latest" tag.
  • Prevent the accidental deployment of unstable or development versions in production environments.
  • Align our CI/CD practices with common best practices for Docker image management.

Proposal

Modify the GitHub Actions workflow in docker-build.yml:

  • Remove the automatic application of the "latest" tag for main branch commits.
  • Apply the "latest" tag exclusively when new tags (e.g., release tags) are created.
  • Introduce a mechanism to extract the semantic version from the git tag (github.ref) and use it for tagging the Docker image.

Who Can Address the Issue

This issue requires input from the DevOps team with expertise in GitHub Actions and Docker workflows. Knowledge of our current CI/CD processes and tagging conventions will be essential.

Other Links/References

@Fovty Fovty self-assigned this Apr 16, 2024
@Fovty Fovty added the enhancement New feature or request label Apr 16, 2024
@Fovty
Copy link
Member Author

Fovty commented Apr 16, 2024

Will create a PR as soon as #15 is merged

@Fovty Fovty mentioned this issue Apr 17, 2024
1 task
@Fovty Fovty closed this as completed Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant