Describe the change
This pull request includes changes to our GitHub Actions workflow, specifically targeting the process of building and pushing Docker images. The new workflow will trigger whenever a new tag is created in the repository.
Images are now being pushed to https://hub.docker.com/u/target
Changes Include:
The workflow is now triggered on tag creation instead of push to the publish-images branch.
The image build and push process has been streamlined using an associative array in Bash. This should make the script more maintainable and easier to expand if we add more components in the future.
The Dockerfiles' paths and their respective image names have been included in the associative array. This approach simplifies the process of adding or modifying Dockerfiles and corresponding images.
Added error handling to the script. The workflow will now stop if any command within the Build, Tag and Push Images step fails.
The script now includes comments, making it more readable and easier to understand.
The updated workflow:
Checks out the repository.
Logs in to Docker Hub.
Builds, tags, and pushes each Docker image.
Logs out from Docker Hub.
Describe testing procedures
N/A
Sample output
N/A
Checklist
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of and tested my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
Describe the change This pull request includes changes to our GitHub Actions workflow, specifically targeting the process of building and pushing Docker images. The new workflow will trigger whenever a new tag is created in the repository.
Images are now being pushed to
https://hub.docker.com/u/target
Changes Include:
The updated workflow:
Describe testing procedures N/A
Sample output N/A
Checklist