-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a CI to generate packages for Kali (#604)
- Loading branch information
Showing
8 changed files
with
159 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exclude_paths: | ||
- '.github/workflows/kali-package.dockerfile' |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
From kalilinux/kali-rolling:latest | ||
|
||
RUN apt-get update -y && apt-get install --no-install-recommends -y \ | ||
git python3 python3-pip debhelper \ | ||
dh-virtualenv build-essential devscripts equivs \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /root/ | ||
COPY quark-engine /root/quark-engine | ||
|
||
WORKDIR /root/quark-engine | ||
RUN touch Makefile | ||
|
||
CMD ["dpkg-buildpackage", "-us", "-uc", "-b"] |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Kali Package CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup environments for packaging | ||
run: | | ||
cd .. | ||
cp quark-engine/.github/workflows/kali-package.dockerfile . | ||
docker build . --file kali-package.dockerfile -t packaging_for_kali | ||
cd - | ||
- name: Packaging | ||
run: | | ||
docker run --name factory packaging_for_kali:latest | ||
docker cp factory:/root/ . | ||
- name: Upload package as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: kali-package | ||
path: '${{ github.workspace }}/root/*.deb' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/opt/venvs/quark-engine/bin/quark usr/bin/quark | ||
/opt/venvs/quark-engine/bin/freshquark usr/bin/freshquark | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
|
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