Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
* text=auto eol=lf

*.sh text eol=lf
*.ps1 text eol=crlf
*.bat text eol=crlf
*.cmd text eol=crlf

*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
# Auto detect text files and perform LF normalization
* text=auto
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: [jhd3197]
github: [andreamada]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand All @@ -10,6 +10,6 @@ liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: jhd3197
buy_me_a_coffee: andreamada
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
133 changes: 9 additions & 124 deletions .github/workflows/agent-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
type: string

env:
GO_VERSION: '1.23'
GO_VERSION: '1.21'

jobs:
build:
Expand Down Expand Up @@ -190,107 +190,10 @@ jobs:
path: packages/*.rpm
retention-days: 5

# Build Windows MSI
build-msi:
name: Build MSI Installer
runs-on: windows-latest
needs: build

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Get version
id: version
shell: bash
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION="${{ github.event.inputs.version }}"
else
VERSION="${GITHUB_REF#refs/tags/agent-v}"
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Install WiX Toolset
run: |
dotnet tool install --global wix --version 5.0.2

- name: Download binary
uses: actions/download-artifact@v4
with:
name: serverkit-agent-windows-amd64
path: dist/

- name: Extract binary
shell: bash
run: |
cd dist
unzip serverkit-agent-${{ steps.version.outputs.version }}-windows-amd64.zip

- name: Build MSI
shell: pwsh
run: |
cd agent/packaging/msi
.\build.ps1 -Version "${{ steps.version.outputs.version }}" -BinaryPath "..\..\..\dist\serverkit-agent-windows-amd64.exe" -OutputDir "..\..\..\packages"

- name: Upload MSI
uses: actions/upload-artifact@v4
with:
name: serverkit-agent-msi
path: packages/*.msi
retention-days: 5

# Build Docker image
build-docker:
name: Build Docker Image
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Get version
id: version
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION="${{ github.event.inputs.version }}"
else
VERSION="${GITHUB_REF#refs/tags/agent-v}"
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
continue-on-error: true

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./agent
platforms: linux/amd64,linux/arm64
push: ${{ secrets.DOCKERHUB_USERNAME != '' }}
tags: |
jhd3197/serverkit-agent:latest
jhd3197/serverkit-agent:${{ steps.version.outputs.version }}
build-args: |
VERSION=${{ steps.version.outputs.version }}
BUILD_TIME=${{ github.event.repository.updated_at }}
GIT_COMMIT=${{ github.sha }}

release:
name: Create Release
runs-on: ubuntu-latest
needs: [build, build-deb, build-rpm, build-msi, build-docker]
needs: [build, build-deb, build-rpm]
permissions:
contents: write

Expand Down Expand Up @@ -322,8 +225,6 @@ jobs:
find artifacts -type f -name "*.deb" -exec mv {} release/ \;
# RPM packages
find artifacts -type f -name "*.rpm" -exec mv {} release/ \;
# MSI installers
find artifacts -type f -name "*.msi" -exec mv {} release/ \;
ls -la release/

- name: Generate checksums
Expand Down Expand Up @@ -364,15 +265,9 @@ jobs:
#### Windows Installer
| Format | Architecture | Download |
|--------|--------------|----------|
| MSI | x64 | `serverkit-agent-${{ steps.version.outputs.version }}-x64.msi` |

> **New:** Run `serverkit-agent tray` to launch the **System Tray Application** which provides a visual indicator that the agent is running, along with quick access to status, logs, and service controls. The MSI installer auto-starts the tray on Windows login.
| ZIP | x64 | `serverkit-agent-${{ steps.version.outputs.version }}-windows-amd64.zip` |

#### Docker
```bash
docker pull jhd3197/serverkit-agent:${{ steps.version.outputs.version }}
docker pull jhd3197/serverkit-agent:latest
```
> **New:** Run `serverkit-agent tray` to launch the **System Tray Application** which provides a visual indicator that the agent is running, along with quick access to status, logs, and service controls.

### Quick Install

Expand All @@ -391,19 +286,11 @@ jobs:
sudo systemctl start serverkit-agent
```

**Windows (MSI):**
Download and run the MSI installer, then:
**Windows:**
Download and run the binary zip, then:
```powershell
serverkit-agent register --token "YOUR_TOKEN" --server "https://your-serverkit.com"
Start-Service ServerKitAgent
```

**Docker:**
```bash
docker run -d --name serverkit-agent \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v serverkit-config:/etc/serverkit-agent \
jhd3197/serverkit-agent:${{ steps.version.outputs.version }}
.\serverkit-agent.exe register --token "YOUR_TOKEN" --server "https://your-serverkit.com"
.\serverkit-agent.exe start
```

### Verification
Expand All @@ -422,7 +309,7 @@ jobs:
summary:
name: Build Summary
runs-on: ubuntu-latest
needs: [build, build-deb, build-rpm, build-msi, build-docker, release]
needs: [build, build-deb, build-rpm, release]

steps:
- name: Get version
Expand Down Expand Up @@ -457,8 +344,6 @@ jobs:
echo "| DEB | arm64 | ✅ Built |" >> $GITHUB_STEP_SUMMARY
echo "| RPM | x86_64 | ✅ Built |" >> $GITHUB_STEP_SUMMARY
echo "| RPM | aarch64 | ✅ Built |" >> $GITHUB_STEP_SUMMARY
echo "| MSI | x64 | ✅ Built |" >> $GITHUB_STEP_SUMMARY
echo "| Docker | multi-arch | ✅ Built |" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Release" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,4 @@ nul
SECURITY_AUDIT.md
APP_IMPROVEMENTS.md
*.png
frontend/.env.development
2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Thanks to everyone who has contributed to ServerKit!

## Core

- **Juan Denis** ([@jhd3197](https://github.com/jhd3197)) — Creator and maintainer
- **Juan Denis** ([@andreamada](https://github.com/andreamada)) — Creator and maintainer

## Contributors

Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 andreamada

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading