-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* interface cleanup bug, logging * cli client enrollment, logging * more logs, error handling * debs, rpms, services * fix time * comment out actions * cleanup * fix build * fix arch * fix dependency check, put binaries in sbin * add logging options to subcommands * better error message * set perms * make perms non windows * modify error handling * version and protobufs bump, cleanup
- Loading branch information
1 parent
660e6be
commit 4705e0d
Showing
11 changed files
with
351 additions
and
110 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,5 @@ | ||
-s dir | ||
--name dg | ||
--description "defguard CLI client" | ||
--url "https://defguard.net/" | ||
--maintainer "teonite" |
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 |
---|---|---|
|
@@ -182,6 +182,34 @@ jobs: | |
asset_path: dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz | ||
asset_name: dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz | ||
asset_content_type: application/octet-stream | ||
- name: Build dg deb | ||
uses: defGuard/fpm-action@main | ||
with: | ||
fpm_args: 'dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}=/usr/sbin/dg dg.service=/usr/lib/systemd/system/dg.service src-tauri/cli/.env=/etc/defguard/dg.conf' | ||
fpm_opts: '--architecture ${{ matrix.binary_arch }} --debug --output-type deb --version ${{ env.VERSION }} --package dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.deb' | ||
- name: Upload DEB | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-release.outputs.upload_url }} | ||
asset_path: dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.deb | ||
asset_name: dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.deb | ||
asset_content_type: application/octet-stream | ||
- name: Build dg rpm | ||
uses: defGuard/fpm-action@main | ||
with: | ||
fpm_args: 'dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}=/usr/sbin/dg dg.service=/usr/lib/systemd/system/dg.service src-tauri/cli/.env=/etc/defguard/dg.conf' | ||
fpm_opts: '--architecture ${{ matrix.binary_arch }} --debug --output-type rpm --version ${{ env.VERSION }} --package dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.rpm' | ||
- name: Upload RPM | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-release.outputs.upload_url }} | ||
asset_path: dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.rpm | ||
asset_name: dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.rpm | ||
asset_content_type: application/octet-stream | ||
|
||
build-macos: | ||
needs: | ||
|
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,21 @@ | ||
[Unit] | ||
Description=Defguard CLI client | ||
Documentation=https://docs.defguard.net/ | ||
Wants=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
EnvironmentFile=/etc/defguard/dg.conf | ||
ExecStart=/usr/sbin/dg | ||
KillMode=process | ||
KillSignal=SIGINT | ||
LimitNOFILE=65536 | ||
LimitNPROC=infinity | ||
Restart=on-failure | ||
RestartSec=2 | ||
TasksMax=infinity | ||
OOMScoreAdjust=-1000 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
# DG_VERBOSE=true | ||
# DG_DEBUG=true | ||
# DG_CONFIG=/path/to/your/config.json |
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
Oops, something went wrong.