1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 03:21:30 +01:00

gha: cleanup ansible workflow

This commit is contained in:
bretello 2024-07-05 22:30:15 +02:00
parent 28b1d9e2f7
commit 0be5c5f39e
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -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}}