Skip to content

Update Docker Hub Image Tag on Pull Request Completion #110

@KaueReinbold

Description

@KaueReinbold

Description:

Automate the process of updating the Docker Hub image tag based on the result of a completed pull request. When a pull request is created, trigger a build process to create a tag named "release-candidate" along with the name or ID of the pull request. Subsequently, upon successful completion of the pull request, promote the image tag on Docker Hub to either the "latest" or "main" tag.

Steps to Implement:

  1. Configure the build process to create a Docker image with the tag "release-candidate-pr-" (e.g., "release-candidate-pr-123").
  2. Upon pull request completion, trigger a build process to promote the "release-candidate-pr-" tag to either "latest" or "main" based on the branch.
  3. Update the README with the latest Docker image tag and link to Docker Hub.

Additional Information:

  • Ensure proper authentication and permissions for triggering builds and updating Docker Hub tags.
  • Include relevant checks in the build pipeline to validate the success of the pull request before promoting the image tag.
  • Document the process for contributors to understand the Docker image versioning.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions