-
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. As .git is not copied, the printing out the last commit is made from the container-build rule. For internal CI/CD we can track the repository related state by the image tag which is the short hash of the repository. Add specific ignore at the end of .dockerignore on prevention of future changes. Credits on: insights-rbac contributors Signed-off-by: Alejandro Visiedo <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 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,23 @@ | ||
.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 | ||
|
||
# File generated when running unit tests | ||
coverage.out | ||
# NOTE DO NOT ADD CHANGES AFTER THIS LINE | ||
|
||
# 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
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