mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Add fleet-desktop test to test-packaging.yml (#5289)
* Add fleet-desktop test to test-packaging.yml * Add itself to be able to trigger action * Use stable * Add --fleet-desktop flag to integration.yml
This commit is contained in:
parent
45b9a382a6
commit
77f3513020
2 changed files with 15 additions and 2 deletions
4
.github/workflows/integration.yml
vendored
4
.github/workflows/integration.yml
vendored
|
|
@ -158,7 +158,7 @@ jobs:
|
|||
SECRET=$(echo $SECRET_JSON | jq -r '.spec.secrets[0].secret')
|
||||
echo "Secret: $SECRET"
|
||||
echo "Hostname: $(hostname -s)"
|
||||
fleetctl package --type pkg --fleet-url=${{ needs.gen.outputs.address }} --enroll-secret=$SECRET --orbit-channel=${{ matrix.orbit-channel }} --osqueryd-channel=${{ matrix.osqueryd-channel }}
|
||||
fleetctl package --type pkg --fleet-url=${{ needs.gen.outputs.address }} --enroll-secret=$SECRET --orbit-channel=${{ matrix.orbit-channel }} --osqueryd-channel=${{ matrix.osqueryd-channel }} --fleet-desktop
|
||||
sudo installer -pkg fleet-osquery.pkg -target /
|
||||
until fleetctl get hosts | grep -iF $(hostname -s);
|
||||
do
|
||||
|
|
@ -230,7 +230,7 @@ jobs:
|
|||
SECRET=$(echo $SECRET_JSON | jq -r '.spec.secrets[0].secret')
|
||||
echo "Secret: $SECRET"
|
||||
echo "Hostname: $(hostname -s)"
|
||||
fleetctl package --type msi --fleet-url=${{ needs.gen.outputs.address }} --enroll-secret=$SECRET --orbit-channel=${{ matrix.orbit-channel }} --osqueryd-channel=${{ matrix.osqueryd-channel }}
|
||||
fleetctl package --type msi --fleet-url=${{ needs.gen.outputs.address }} --enroll-secret=$SECRET --orbit-channel=${{ matrix.orbit-channel }} --osqueryd-channel=${{ matrix.osqueryd-channel }} --fleet-desktop
|
||||
mv fleet-osquery.msi orbit-${{ matrix.orbit-channel }}-osqueryd-${{ matrix.osqueryd-channel }}.msi
|
||||
|
||||
- name: Upload MSI
|
||||
|
|
|
|||
13
.github/workflows/test-packaging.yml
vendored
13
.github/workflows/test-packaging.yml
vendored
|
|
@ -1,5 +1,10 @@
|
|||
name: Test packaging
|
||||
|
||||
# This workflow tests packaging of Fleet-osquery with the
|
||||
# `fleetctl package' command. It fetches the targets: orbit,
|
||||
# osquery and fleet-desktop from the default (Fleet's) TUF server,
|
||||
# https://tuf.fleetctl.com.
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
|
@ -8,6 +13,8 @@ on:
|
|||
pull_request:
|
||||
paths:
|
||||
- '**.go'
|
||||
- '.github/workflows/test-packaging.yml'
|
||||
workflow_dispatch: # Manual
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
@ -61,5 +68,11 @@ jobs:
|
|||
- name: Build MSI
|
||||
run: ./build/fleetctl package --type msi --enroll-secret=foo --fleet-url=https://localhost:8080
|
||||
|
||||
- name: Build MSI with Fleet Desktop
|
||||
run: ./build/fleetctl package --type msi --enroll-secret=foo --fleet-url=https://localhost:8080 --fleet-desktop
|
||||
|
||||
- name: Build PKG
|
||||
run: ./build/fleetctl package --type pkg --enroll-secret=foo --fleet-url=https://localhost:8080
|
||||
|
||||
- name: Build PKG with Fleet Desktop
|
||||
run: ./build/fleetctl package --type pkg --enroll-secret=foo --fleet-url=https://localhost:8080 --fleet-desktop
|
||||
|
|
|
|||
Loading…
Reference in a new issue