split step for setup

This commit is contained in:
2025-08-12 20:59:29 +05:30
parent ae73bc0f6f
commit ea546f9976

View File

@@ -12,14 +12,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update packages
env:
ANSIBLE_HOST_KEY_CHECKING: 'false'
- name: Setup environment
run: |
apt update && apt install -y ansible && \
echo -e "${{ secrets.ANSIBLE_PRIVATE_KEY }}" > /mnt/default-key && \
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
chmod 600 /mnt/default-key && \
chmod 600 /mnt/default-key
- name: Update packages
run: |
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/update-packages.yml
- name: Prune ctr images