Feat(273): CI enable images tagging #1278
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
This PR introduces a feature update related to Add release tags to docker images published to docker hub #273. It updates the GitHub workflows to build and push Docker images, including changes in the
ci.yml
,cife.yml
files, and adds new workflows (docker-develop-build.yml
anddocker-develop-fe-build.yml
) to support development builds.Why was this change needed?
The changes were needed to streamline the CI/CD pipeline for DocsGPT, enabling the release-based tagging and pushing of Docker images. This also adds support for development builds of both the main DocsGPT application and the frontend, ensuring that images can be built in between releases under
develop
tag and pushed to Docker Hub and GitHub Container Registry (GHCR). This allows for better management of both release and development builds.Other information:
Introduced caching mechanisms (
cache-from
andcache-to
) for Docker images to optimize build times.The workflows now trigger on the
release
event for published releases, ensuring that the correct version tags are applied to Docker images.The newly added
docker-develop-build.yml
anddocker-develop-fe-build.yml
workflows ensure that development images are pushed when changes are made to themain
branch.Warning
Whenever a push to the main branch occurs, it triggers an image build, and the image name has been updated to
{{imageName}}:develop
instead of{{imageName}}:latest
, so please update any pipeline that depends on the old image tag to use the new one.