mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-23 20:11:31 +01:00
gha: split workflows
This commit is contained in:
parent
81fa97520c
commit
4a08944497
36
.github/workflows/ansible.yml
vendored
Normal file
36
.github/workflows/ansible.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: Build Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: "20 4 * * 6" # saturday at 4.20
|
||||
workflow_dispatch:
|
||||
|
||||
ansible:
|
||||
runs-on: archlinux-latest
|
||||
steps:
|
||||
- name: Install ansible
|
||||
run: |
|
||||
pacman -Sy
|
||||
pacman -S ansible
|
||||
|
||||
- name: Setup local inventory
|
||||
run: |
|
||||
echo "localhost ansible_user=root connection=local" > ansible-hosts
|
||||
|
||||
- name: Run playbook
|
||||
run: |
|
||||
ansible-playbook -i ansible-hosts playbook.yml
|
||||
|
||||
- name: Notify on failure
|
||||
if: failure()
|
||||
run: |
|
||||
python -m venv .
|
||||
./bin/pip install https://git.decapod.one/brethil/bretellofier
|
||||
|
||||
./bin/bretellofier "[brethil/dotfiles] 💥 Build failed"
|
||||
env:
|
||||
BRETELLOFIER_RECIPIENTS: ${{ secrets.BRETELLOFIER_RECIPIENTS }}
|
||||
BRETELLOFIER_TOKEN: ${{ secrets.BRETELLOFIER_TOKEN}}
|
27
.github/workflows/build_image.yml
vendored
27
.github/workflows/build_image.yml
vendored
|
@ -39,30 +39,3 @@ jobs:
|
|||
env:
|
||||
BRETELLOFIER_RECIPIENTS: ${{ secrets.BRETELLOFIER_RECIPIENTS }}
|
||||
BRETELLOFIER_TOKEN: ${{ secrets.BRETELLOFIER_TOKEN}}
|
||||
|
||||
ansible:
|
||||
runs-on: archlinux-latest
|
||||
steps:
|
||||
- name: Install ansible
|
||||
run: |
|
||||
pacman -Sy
|
||||
pacman -S ansible
|
||||
|
||||
- name: Setup local inventory
|
||||
run: |
|
||||
echo "localhost ansible_user=root connection=local" > ansible-hosts
|
||||
|
||||
- name: Run playbook
|
||||
run: |
|
||||
ansible-playbook -i ansible-hosts playbook.yml
|
||||
|
||||
- name: Notify on failure
|
||||
if: failure()
|
||||
run: |
|
||||
python -m venv .
|
||||
./bin/pip install https://git.decapod.one/brethil/bretellofier
|
||||
|
||||
./bin/bretellofier "[brethil/dotfiles] 💥 Build failed"
|
||||
env:
|
||||
BRETELLOFIER_RECIPIENTS: ${{ secrets.BRETELLOFIER_RECIPIENTS }}
|
||||
BRETELLOFIER_TOKEN: ${{ secrets.BRETELLOFIER_TOKEN}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user