Commit Graph

4 Commits

  • Update workflows and build process for enhanced metadata injection
    - Upgraded GitHub Actions (`actions/checkout` to v4, `actions/setup-go` to v4, `goreleaser-action` to v4).
    - Added detailed build metadata (`VERSION`, `COMMIT`, `BUILD_DATE`) to workflows.
    - Unified metadata injection into binaries and Docker images.
    - Enhanced `.goreleaser.yml` with checksum, snapshot, and changelog configurations.
  • Add versioning support to build artifacts and log outputs
    - Introduced `Version` variable, set during build via `-ldflags`, to embed application version.
    - Updated Dockerfile to accept `APP_VERSION` argument for version injection during build.
    - Modified `.goreleaser.yml` to pass GitHub release tag as version via `ldflags`.
    - Added version logging in the application startup.
  • Add Docker support with CI/CD workflow and usage instructions
    - Added `.github/workflows/docker-image.yml` for automated Docker image build and push on version tags.
    - Created `Dockerfile` to containerize the application.
    - Updated README with instructions for running the application using Docker.