feat: add automated Docker BuildX dependency management workflow (#4029)

This commit is contained in:
Salman Chishti
2025-09-09 16:40:34 +01:00
committed by GitHub
parent 720f16aef6
commit bf8236344b

View File

@@ -2,7 +2,7 @@ name: "Docker/Buildx Version Upgrade"
on: on:
schedule: schedule:
- cron: '0 0 * * 1' # Run every Monday at midnight - cron: "0 9 * * 1" # Weekly on Monday at 9 AM UTC (independent of other dependencies)
workflow_dispatch: # Allow manual triggering workflow_dispatch: # Allow manual triggering
jobs: jobs:
@@ -134,11 +134,30 @@ jobs:
git commit -a -m "$commit_message" git commit -a -m "$commit_message"
git push --force origin "$branch_name" git push --force origin "$branch_name"
# Create PR # Create PR body using here-doc for proper formatting
pr_body="Upgrades Docker version from ${{ needs.check-versions.outputs.DOCKER_CURRENT_VERSION }} to ${{ needs.check-versions.outputs.DOCKER_LATEST_VERSION }} and Docker Buildx version from ${{ needs.check-versions.outputs.BUILDX_CURRENT_VERSION }} to ${{ needs.check-versions.outputs.BUILDX_LATEST_VERSION }}.\n\n" cat > pr_body.txt << 'EOF'
pr_body+="Release notes: https://docs.docker.com/engine/release-notes/\n\n" Automated Docker and Buildx version update:
pr_body+="---\n\nAutogenerated by [Docker/Buildx Version Upgrade Workflow](https://github.com/actions/runner/blob/main/.github/workflows/docker-buildx-upgrade.yml)"
- Docker: ${{ needs.check-versions.outputs.DOCKER_CURRENT_VERSION }} → ${{ needs.check-versions.outputs.DOCKER_LATEST_VERSION }}
- Buildx: ${{ needs.check-versions.outputs.BUILDX_CURRENT_VERSION }} → ${{ needs.check-versions.outputs.BUILDX_LATEST_VERSION }}
This update ensures we're using the latest stable Docker and Buildx versions for security and performance improvements.
**Release notes:** https://docs.docker.com/engine/release-notes/
**Next steps:**
- Review the version changes
- Verify container builds work as expected
- Test multi-platform builds if applicable
- Merge when ready
---
Autogenerated by [Docker/Buildx Version Upgrade Workflow](https://github.com/actions/runner/blob/main/.github/workflows/docker-buildx-upgrade.yml)
EOF
# Create PR
gh pr create -B main -H "$branch_name" \ gh pr create -B main -H "$branch_name" \
--title "$pr_title" \ --title "$pr_title" \
--body "$pr_body" --label "dependency" \
--body-file pr_body.txt