Skip to content

Commit

Permalink
Add a release rule in the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mtardy committed Apr 21, 2022
1 parent dbcab87 commit 6014641
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
kdigger
release/

.vagrant
vm_ssh_config
Expand Down
15 changes: 8 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
## `1.1.0` - 2022-04-21
### Added
- Two new plugins, cgroups, and node and checks for NoNewPrivs and Seccomp flag
in respectively, capabilities and syscall plugins. (Thanks for Andrew Martin &
Michael Hausenblas for the inspiration from the Appendix 1 "A Pod-Level Attack"
from the "Hacking Kubernetes" book)
in respectively, capabilities and syscall plugins. (Thanks for Andrew Martin
& Michael Hausenblas for the inspiration from the Appendix 1 "A Pod-Level
Attack" from the "Hacking Kubernetes" book)
- Documentation about the Wildcard feature removal in CoreDNS.
- New Makefiles rules to quickly start kdigger in a Pod in a kind cluster.
- New Makefiles rules to quickly start kdigger in a Pod in a kind cluster and
to make a release.
- Vagrantfile for development on different systems.

### Changed
- Update dependencies and use Go 1.18.
- Fix the `got get` oneliner using `go install`.
- The output mechanism for plugins, now using comments array and flatten results
that are of length one for better JSON output parsing.
- The output mechanism for plugins, now using comments array and flatten
results that are of length one for better JSON output parsing.

## `1.0.0` - 2021-10-07
- Initial release!
- Initial release!
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ ARCH=$$(uname -m)

OUTPUTNAME=kdigger

RELEASE_NAME=kdigger-linux-amd64
RELEASE_FOLDER=release

# building for linux/amd64, if you want to build for arm64 you will have to
# adapt the syscall part that doesn't compile out of the box right now
GOOS=linux
Expand Down Expand Up @@ -33,6 +36,13 @@ fast-build:
lint:
golangci-lint run

release: build
mkdir $(RELEASE_FOLDER)
mv kdigger $(RELEASE_FOLDER)/$(RELEASE_NAME)
cd $(RELEASE_FOLDER) \
&& sha256sum $(RELEASE_NAME) > $(RELEASE_NAME).sha256 \
&& tar cvf - $(RELEASE_NAME) | gzip -9 - > $(RELEASE_NAME).tar.gz

DEV_IMAGE_TAG=mtardy/kdigger-dev
.PHONY: run
run: fast-build
Expand Down

0 comments on commit 6014641

Please sign in to comment.