Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

ci(release): build and attach linux amd64/arm64 tarballs

Juan Denis73d611966fee
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 46d9a49d..274837b9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -73,6 +73,45 @@ jobs:
git push origin "$TAG"
fi
+ build-release:
+ name: Build Release Tarball
+ runs-on: ${{ matrix.runner }}
+ needs: version
+ strategy:
+ fail-fast: true
+ matrix:
+ include:
+ - runner: ubuntu-latest
+ arch: amd64
+ - runner: ubuntu-24.04-arm
+ arch: arm64
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+
+ - name: Install build dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y python3-venv python3-pip rsync
+
+ - name: Build release tarball
+ env:
+ BUILD_ARCH: ${{ matrix.arch }}
+ run: bash scripts/build-release.sh
+
+ - name: Upload tarball artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: serverkit-tarball-${{ matrix.arch }}
+ path: serverkit-*.tar.gz
+ if-no-files-found: error
+
build-docker:
name: Build Docker Image
runs-on: ubuntu-latest
@@ -112,7 +151,7 @@ jobs:
release:
name: Create Release
runs-on: ubuntu-latest
- needs: [version, build-docker]
+ needs: [version, build-docker, build-release]
permissions:
contents: write
@@ -120,12 +159,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
+ - name: Download release tarballs
+ uses: actions/download-artifact@v4
+ with:
+ path: release-tarballs
+ pattern: serverkit-tarball-*
+ merge-multiple: true
+
- name: Generate checksums for tracked release files
run: |
mkdir -p release
cp VERSION release/VERSION
cp docker-compose.yml release/docker-compose.yml
cp Dockerfile release/Dockerfile
+ mv release-tarballs/serverkit-*.tar.gz release/ 2>/dev/null || true
cd release
sha256sum * > checksums.txt
cat checksums.txt
@@ -151,6 +198,12 @@ jobs:
docker pull ${{ env.DOCKER_IMAGE }}:latest
```
+ ### One-line installer
+
+ ```bash
+ curl -fsSL https://serverkit.ai/install.sh | bash
+ ```
+
### Quick Start
```bash
@@ -188,4 +241,6 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Release" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
+ echo "Tarballs: serverkit-${{ needs.version.outputs.tag }}-linux-amd64.tar.gz, serverkit-${{ needs.version.outputs.tag }}-linux-arm64.tar.gz" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
echo "Release created at: https://github.com/${{ github.repository }}/releases/tag/${{ needs.version.outputs.tag }}" >> $GITHUB_STEP_SUMMARY
diff --git a/scripts/build-release.sh b/scripts/build-release.sh
index 019f639d..ad6b062d 100644
--- a/scripts/build-release.sh
+++ b/scripts/build-release.sh
@@ -42,10 +42,10 @@ else
halt "Cannot determine version. Set VERSION or create a VERSION file."
fi
-case "$(uname -m)" in
- x86_64) DL_ARCH="amd64" ;;
+case "${BUILD_ARCH:-$(uname -m)}" in
+ x86_64|amd64) DL_ARCH="amd64" ;;
aarch64|arm64) DL_ARCH="arm64" ;;
- *) halt "Unsupported architecture: $(uname -m)" ;;
+ *) halt "Unsupported architecture: ${BUILD_ARCH:-$(uname -m)}" ;;
esac
OUTPUT="serverkit-${RELEASE_TAG}-linux-${DL_ARCH}.tar.gz"