Files
hatarashi-hako/.gitea/workflows/hatarashi-hako.yaml
shmick 5c97cd9c8a
All checks were successful
Ansible Deploy / deploy (push) Successful in 1m1s
Initial Commit - Hatarashi Hako with working Actions
2023-11-18 11:38:01 +02:00

32 lines
735 B
YAML

name: Ansible Deploy
on:
push:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
run: |
apt -y update
apt -y install python3 python3-pip skopeo
- name: Install Ansible
run: |
python3 -m pip install --upgrade pip
pip install ansible
- name: Set up SSH
uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Run Ansible Playbook
run: |
ansible-playbook -i inventory.yaml -e 'ANSIBLE_SUDO_PASS="${{ secrets.SUDO_PASS }}" SKOPEO_PASS="${{ secrets.SKOPEO_PASS }}"' hatarashi-hako.yaml -vv