Files
homelab/.gitea/workflows/update.yml
T
alex 7c96008ad5
Deploy Containers / Prepare (push) Successful in 7s
clean up scripts
2026-05-20 20:53:33 -04:00

34 lines
933 B
YAML

name: Update Images
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
jobs:
run-update:
name: Run update script
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure credentials
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
eval $(ssh-agent -s)
ssh-add <(echo "${{ secrets.SSH_KEY }}")
echo "${{ secrets.VAULT_PASS }}" > ~/.vault_pass.txt
- name: Install required dependencies
run: |
python3 -m pip install requests pyyaml ansible-core --break-system-packages
ansible-galaxy collection install community.docker
- name: Run update script
run: python3 scripts/run_updates.py
env:
UPDATES_DISCORD_WEBHOOK: ${{vars.UPDATES_DISCORD_WEBHOOK}}