feat: Update Docker image name to use repository variable #48
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.
This pull request updates the
.github/workflows/release.ymlfile to improve flexibility and security in the Docker image publishing workflow. The changes primarily involve using dynamic values for the image name, updating credentials, and ensuring the repository name is properly formatted.Workflow improvements:
IMAGE_NAMEto dynamically use the GitHub repository name instead of a hardcoded value, enhancing flexibility for different repositories. ([.github/workflows/release.ymlL9-L18](https://github.com/Zenfulcode/CommercifyGO/pull/48/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L9-L18))GHCR_TOKENif available, falling back toGITHUB_TOKENfor improved security and compatibility. ([.github/workflows/release.ymlL31-R40](https://github.com/Zenfulcode/CommercifyGO/pull/48/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L31-R40))IMAGE_NAME_LOWER) for consistent Docker image naming. ([.github/workflows/release.ymlL31-R40](https://github.com/Zenfulcode/CommercifyGO/pull/48/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L31-R40))Metadata adjustments:
imagesparameter in the Docker metadata action to use the newIMAGE_NAME_LOWERenvironment variable, ensuring proper formatting for image tags and labels. ([.github/workflows/release.ymlL31-R40](https://github.com/Zenfulcode/CommercifyGO/pull/48/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L31-R40))