-
Notifications
You must be signed in to change notification settings - Fork 21
fix: include .git in Docker build context for version embedding #1621
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f430c64
Revert "fix: embed version info in Docker builds (#1619)"
joanestebanr 549aea0
fix: include .git in Docker build context for version embedding
joanestebanr 1d19eec
chore: bump golang.org/x dependencies to fix vulnerabilities
joanestebanr 98b0f7b
ci: verify version is embedded in Docker image after build
joanestebanr cc9142c
fix: exclude .git/config from Docker context to avoid credential leakage
joanestebanr 0cfc477
ci: verify version is embedded in Docker image after build
joanestebanr 2aa5c1c
ci: verify version is embedded in Docker image after build
joanestebanr 2ce4d90
fix: exclude .git/config from Docker context instead of all of .git
joanestebanr dda8358
fix: avoid script injection by using env vars for workflow inputs
joanestebanr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| VERSION ?= $(shell git describe --tags --always) | ||
| GITREV ?= $(shell git rev-parse --short HEAD) | ||
| GITBRANCH ?= $(shell git rev-parse --abbrev-ref HEAD) | ||
| VERSION := $(shell git describe --tags --always) | ||
| GITREV := $(shell git rev-parse --short HEAD) | ||
| GITBRANCH := $(shell git rev-parse --abbrev-ref HEAD) | ||
| DATE := $(shell LANG=US date +"%a, %d %b %Y %X %z") |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.