mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 19:11:30 +01:00
gha: cleanup ansible workflow
This commit is contained in:
parent
28b1d9e2f7
commit
0be5c5f39e
25
.github/workflows/ansible.yml
vendored
25
.github/workflows/ansible.yml
vendored
|
@ -10,28 +10,35 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ansible:
|
ansible:
|
||||||
runs-on: archlinux-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: registry.decapod.one/archlinux-toolchain:latest
|
||||||
|
credentials:
|
||||||
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install ansible
|
- name: Install ansible
|
||||||
run: |
|
run: |
|
||||||
pacman -Sy
|
pacman -Sy --noconfirm ansible openssh
|
||||||
pacman -S ansible --noconfirm
|
|
||||||
|
|
||||||
- name: Setup local inventory
|
- name: Setup local inventory
|
||||||
run: |
|
run: |
|
||||||
echo "localhost ansible_user=root connection=local" > ansible-hosts
|
echo "localhost ansible_user=root ansible_connection=local" > dev/ansible-hosts
|
||||||
|
|
||||||
- name: Run playbook
|
- name: Run playbook
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i ansible-hosts playbook.yml
|
cd dev
|
||||||
|
ansible-playbook -i ansible-hosts ../playbook.yml
|
||||||
|
|
||||||
- name: Notify on failure
|
- name: Notify on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
python -m venv .
|
bretellofier "[brethil/dotfiles] 💥 Build failed"
|
||||||
./bin/pip install git+https://git.decapod.one/brethil/bretellofier
|
|
||||||
|
|
||||||
./bin/bretellofier "[brethil/dotfiles] 💥 Build failed"
|
|
||||||
env:
|
env:
|
||||||
BRETELLOFIER_RECIPIENTS: ${{ secrets.BRETELLOFIER_RECIPIENTS }}
|
BRETELLOFIER_RECIPIENTS: ${{ secrets.BRETELLOFIER_RECIPIENTS }}
|
||||||
BRETELLOFIER_TOKEN: ${{ secrets.BRETELLOFIER_TOKEN}}
|
BRETELLOFIER_TOKEN: ${{ secrets.BRETELLOFIER_TOKEN}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user