-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
enhancementNew feature or requestNew feature or request
Description
First of all, thank you for creating Wingfit! I noticed that you already have a Docker workflow setup with GitHub Actions that builds and publishes images to GHCR on tag pushes. I'd like to contribute by enhancing this automation system to make it more robust and flexible.
Proposal
Container Registry Agnostic
- Add Docker Hub publishing alongside GitHub Container Registry
- Implement proper authentication and secret management for both registries
Enhanced Versioning
- Generate Docker tags based on semantic versioning
- Add build date and Git commit labels to images for better traceability
Optimization
- Enhance layer caching in the Dockerfile
- Implement multi-stage builds to reduce final image size
- Add (optional?) healthcheck to the container
Build Configurations
- Create separate production and development builds
- Add architecture-specific builds (amd64, arm64)
Plan
name: Build and Deploy Docker
on:
push:
tags:
- 'v*.*.*' # Semantic version tags
branches:
- main # Optional: build dev images from main branch
env:
REGISTRY_GHCR: ghcr.io
REGISTRY_DOCKER: docker.io
IMAGE_NAME: ${{ github.repository }}
jobs:
# Enhanced build job with multi-registry support- Creating Docker Hub secrets in the repository settings
- Improving the Dockerfile for better caching and optimization
- Adding docs abt the new Docker image versioning strategy
Alex6440itskovacs
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request