Skip to content

Embed build version and print banner#5

Merged
JPedroBorges merged 1 commit intomainfrom
add-version-on-boot
Mar 8, 2026
Merged

Embed build version and print banner#5
JPedroBorges merged 1 commit intomainfrom
add-version-on-boot

Conversation

@JPedroBorges
Copy link
Member

Embed the build/version info into binaries and display a startup banner. Added ldflags -X main.version to the GitHub Actions build steps and added build-args: APP_VERSION to the Docker build/push step so the Docker image can be stamped with the release tag. Dockerfile now accepts ARG APP_VERSION (defaulting to dev) and uses it in the go build ldflags. cmd/pluck/main.go now defines a version var and an ASCII art banner and prints the banner and version on startup.

Embed the build/version info into binaries and display a startup banner. Added ldflags -X main.version to the GitHub Actions build steps and added build-args: APP_VERSION to the Docker build/push step so the Docker image can be stamped with the release tag. Dockerfile now accepts ARG APP_VERSION (defaulting to dev) and uses it in the go build ldflags. cmd/pluck/main.go now defines a version var and an ASCII art banner and prints the banner and version on startup (also added fmt import). Also updated README example to use /data/downloads/complete as the watch directory.
@JPedroBorges JPedroBorges merged commit 7e7ccb7 into main Mar 8, 2026
2 checks passed
@JPedroBorges JPedroBorges deleted the add-version-on-boot branch March 8, 2026 22:24
@JPedroBorges JPedroBorges added the enhancement New feature or request label Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant