mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
# This workflow applies the latest MDM profiles to the workstations team.
|
|
# It uses a fleet instance also built and executed from source.
|
|
#
|
|
# It runs automatically when a file is changed in /mdm_profiles.
|
|
name: Apply latest MDM profiles (Canary)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "mdm_profiles/**.mobileconfig"
|
|
- ".github/workflows/fleetctl-workstations-canary.yml"
|
|
workflow_dispatch: # Manual
|
|
|
|
# This allows a subsequently queued workflow run to interrupt previous runs
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
|
|
cancel-in-progress: true
|
|
|
|
defaults:
|
|
run:
|
|
# fail-fast using bash -eo pipefail. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
|
|
shell: bash
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
DOGFOOD_API_TOKEN: ${{ secrets.DOGFOOD_API_TOKEN }}
|
|
DOGFOOD_URL: ${{ secrets.DOGFOOD_URL }}
|
|
CLOUD_MANAGEMENT_ENROLLMENT_TOKEN: ${{ secrets.CLOUD_MANAGEMENT_ENROLLMENT_TOKEN }}
|
|
|
|
jobs:
|
|
apply-profiles:
|
|
timeout-minutes: 5
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Apply configuration profiles and updates
|
|
uses: fleetdm/fleet-mdm-gitops@15072f2739ef92c6357414ddd86e89b6bf302a2b # v1.1.0
|
|
with:
|
|
FLEET_API_TOKEN: $DOGFOOD_API_TOKEN
|
|
FLEET_URL: $DOGFOOD_URL
|
|
FLEET_TEAM_NAME: 💻🐣 Workstations (canary)
|
|
MDM_CONFIG_REPO: fleetdm/fleet
|
|
MDM_CONFIG_DIRECTORY: mdm_profiles
|
|
MAC_OS_MIN_VERSION: "13.5"
|
|
MAC_OS_VERSION_DEADLINE: 2023-08-09
|
|
MAC_OS_ENABLE_DISK_ENCRYPTION: true
|