Remove apple_bm_default_team (#28) #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Apply latest configuration to Fleet' | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: # allows manual triggering | |
defaults: | |
run: | |
shell: bash | |
# Add FLEET_URL and FLEET_API_TOKEN to the repository secrets. | |
# In addition, specify or add secrets for all the environment variables that are mentioned in the global/team YAML files. | |
env: | |
FLEET_SSO_METADATA: ${{ secrets.FLEET_SSO_METADATA }} | |
FLEET_GLOBAL_ENROLL_SECRET: ${{ secrets.FLEET_GLOBAL_ENROLL_SECRET }} | |
FLEET_WORKSTATIONS_ENROLL_SECRET: ${{ secrets.FLEET_WORKSTATIONS_ENROLL_SECRET }} | |
FLEET_WORKSTATIONS_CANARY_ENROLL_SECRET: ${{ secrets.FLEET_WORKSTATIONS_CANARY_ENROLL_SECRET }} | |
jobs: | |
build-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout GitOps repository | |
uses: actions/checkout@v4 | |
- name: Install fleetctl | |
run: npm install -g fleetctl | |
- name: Configure fleetctl | |
run: fleetctl config set --address ${{ secrets.FLEET_URL }} --token ${{ secrets.FLEET_API_TOKEN }} | |
- name: Run fleetctl gitops commands | |
run: ./workflow.sh |