-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a policy to ignore by default from .dockerignore file. Add specific ignore at the end of .dockerignore on prevention of future changes. Specifically copy only the necessary files and directories. Credits on: insights-rbac contributors Signed-off-by: Alejandro Visiedo <[email protected]> Co-authored-by: Christian Heimes <[email protected]> Signed-off-by: Alejandro Visiedo <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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,18 +1,24 @@ | ||
.DS_Store | ||
.cicd_bootstrap.sh | ||
secrets | ||
.venv | ||
bin | ||
tmp.*/** | ||
**/__debug_bin | ||
# Ignore by default | ||
** | ||
|
||
*.log | ||
|
||
configs | ||
# Add exceptions | ||
!api | ||
!cmd | ||
!go.mod | ||
!go.sum | ||
!internal | ||
!Makefile | ||
!tools | ||
tools/bin | ||
!scripts/mk | ||
!scripts/db/migrations | ||
!configs/config.example.yaml | ||
!.git | ||
|
||
# NOTE DO NOT ADD CHANGES AFTER THIS LINE | ||
|
||
# File generated when running unit tests | ||
coverage.out | ||
# Specific ignore | ||
.docker | ||
.podman | ||
.kube | ||
|
||
# NOTE: .git directory is not listed here. `go build` needs the full `.git` | ||
# directory to include VCS information in go binaries. |
This file contains 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