-
-
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.
Merge pull request #377 from DefGuard/dev
Merge dev -> main
- Loading branch information
Showing
17 changed files
with
887 additions
and
709 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
Oops, something went wrong.