Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: inject app version during Docker build and set default config #21

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

HilkopterBob
Copy link
Owner

  • Updated github/workflows/build-docker-container.yml to pass the app version as a build argument using the release tag name.- Modified Dockerfile to include APP_VERSION argument and inject it during the build process via ldflags.- Enhanced ConfigProvider in conf-init.go to set the default app version using the injected value.- Added AppVersion variable in main.go for linker injection, ensuring the version is set at runtime based on the Docker build process.

- Updated `github/workflows/build-docker-container.yml` to pass the app
version as a build argument using the release tag name.- Modified
`Dockerfile` to include `APP_VERSION` argument and inject it during the
build process via `ldflags`.- Enhanced `ConfigProvider` in
`conf-init.go` to set the default app version using the injected value.-
Added `AppVersion` variable in `main.go` for linker injection, ensuring
the version is set at runtime based on the Docker build process.
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@HilkopterBob HilkopterBob merged commit 1f15b4e into devel Aug 16, 2024
4 of 5 checks passed
@HilkopterBob HilkopterBob deleted the binary-release branch August 16, 2024 10:10
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.

1 participant