Skip to content

chg: [cfg] Testing desktop client for linux #30

chg: [cfg] Testing desktop client for linux

chg: [cfg] Testing desktop client for linux #30

Workflow file for this run

name: orbit-agents
on:
push:
branches: [ main, test ]
env:
VERSION: "v4.55.1"
OSQUERY_URL: "https://osq.lhc.lu:443"
RELEASES_BASE_URL: "https://github.com/fleetdm/fleet/releases/download/fleet"
SHARED_WEB_HOST: "shared-web.lhc.lu"
SHARED_WEB_USER: "orbitagents"
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download fleetctl binary
uses: engineerd/[email protected]
with:
name: fleetctl
url: "${{ env.RELEASES_BASE_URL }}-${{ env.VERSION }}/fleetctl_${{ env.VERSION }}_linux.zip"
pathInArchive: "fleetctl_${{ env.VERSION }}_linux/fleetctl"
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y ca-certificates
- name: Build Linux Package
run: |
/home/runner/configurator/bin/fleetctl package \
--type deb \
--fleet-url=${{ env.OSQUERY_URL }} \
--fleet-desktop \
--enable-scripts \
--enroll-secret="${{ secrets.OSQUERY_SECRET }}" \
--fleet-certificate /etc/ssl/certs/ca-certificates.crt
- name: Build macOS Package
run: |
/home/runner/configurator/bin/fleetctl package \
--type pkg \
--fleet-url=${{ env.OSQUERY_URL }} \
--enable-scripts \
--fleet-desktop \
--enroll-secret="${{ secrets.OSQUERY_SECRET }}" \
--fleet-certificate /etc/ssl/certs/ca-certificates.crt
- name: Build Windows Package
run: |
/home/runner/configurator/bin/fleetctl package \
--type msi \
--fleet-url=${{ env.OSQUERY_URL }} \
--enable-scripts \
--fleet-desktop \
--enroll-secret="${{ secrets.OSQUERY_SECRET }}" \
--fleet-certificate /etc/ssl/certs/ca-certificates.crt
- name: Setup SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SHARED_WEB_PRIV_KEY }}
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
- name: Update known_hosts
run: ssh-keyscan -H ${{ env.SHARED_WEB_HOST }} >> ~/.ssh/known_hosts
- name: List Packages (Test Branch)
if: github.ref == 'refs/heads/test'
run: ls -l *.{msi,deb,pkg}
- name: Deploy Packages (Main Branch)
if: github.ref == 'refs/heads/main'
run: |
mkdir -p packages/
mv *.{msi,deb,pkg} packages/
echo -e "<html><body>\n$(ls -1 packages/ | sed 's@.*@<a href=\"&\">&</a><br/>@')\n</body></html>" > packages/index.html
rsync -r --delete ./packages/ ${{ env.SHARED_WEB_USER }}@${{ env.SHARED_WEB_HOST }}:/var/www/orbit-agents.lhc.lu