mirror of
https://github.com/auricom/home-cluster.git
synced 2025-12-25 16:44:39 +01:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: Minio configuration & upgrade
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ["main"]
|
|
paths: [".github/workflows/minio.yaml", "ansible/**minio**"]
|
|
schedule:
|
|
- cron: '33 7 * * 2'
|
|
|
|
jobs:
|
|
run-ansible-playbook:
|
|
runs-on: ["arc-runner-set-home-ops"]
|
|
steps:
|
|
- name: Generate Token
|
|
uses: actions/create-github-app-token@v1
|
|
id: app-token
|
|
with:
|
|
app-id: "${{ secrets.BOT_APP_ID }}"
|
|
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: "${{ steps.app-token.outputs.token }}"
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install Ansible
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install ansible
|
|
|
|
- name: Run Ansible Playbook
|
|
run: cd ./ansible ; ansible-playbook ./playbooks/minio.yml
|