Skip to content

Create GitHub Action for multiplatform builds - #3

Merged
gatezh merged 4 commits into
masterfrom
claude/github-action-multiplatform-builds-01DEKQyVgMc3efFPC8TH2mUE
Nov 17, 2025
Merged

gatezh merged 4 commits into
masterfrom
claude/github-action-multiplatform-builds-01DEKQyVgMc3efFPC8TH2mUE

Conversation

@gatezh

@gatezh gatezh commented Nov 17, 2025

Copy link
Copy Markdown
Owner

This commit adds a GitHub Actions workflow that automatically builds and pushes multiplatform Docker images when Dockerfiles are updated.

Features:

  • Automatic detection of changed Dockerfiles in image subdirectories
  • Dynamic version extraction from Dockerfile ARG instructions
  • Multiplatform builds (linux/amd64, linux/arm64)
  • Automatic tagging with both version-specific and latest tags
  • Support for manual workflow dispatch
  • Build caching for improved performance
  • Image verification after push

The workflow includes specific tagging logic for devcontainer-hugo-bun (format: hugo{VERSION}-bun{VERSION}-alpine) and generic tagging support for other images based on common version ARG patterns.

Documentation included in .github/workflows/README.md explains:

  • How the workflow operates
  • How to add new images
  • Troubleshooting and best practices

This commit adds a GitHub Actions workflow that automatically builds
and pushes multiplatform Docker images when Dockerfiles are updated.

Features:
- Automatic detection of changed Dockerfiles in image subdirectories
- Dynamic version extraction from Dockerfile ARG instructions
- Multiplatform builds (linux/amd64, linux/arm64)
- Automatic tagging with both version-specific and latest tags
- Support for manual workflow dispatch
- Build caching for improved performance
- Image verification after push

The workflow includes specific tagging logic for devcontainer-hugo-bun
(format: hugo{VERSION}-bun{VERSION}-alpine) and generic tagging
support for other images based on common version ARG patterns.

Documentation included in .github/workflows/README.md explains:
- How the workflow operates
- How to add new images
- Troubleshooting and best practices
- Remove universal image detection and matrix strategy
- Focus on single image: devcontainer-hugo-bun
- Trigger on push to Dockerfile (any branch) or manual dispatch
- Extract Hugo and Bun versions from Dockerfile ARGs
- Generate tags: latest and hugo{VERSION}-bun{VERSION}-alpine
- Build multiplatform: linux/amd64, linux/arm64
- Simplified documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants