use ghcr.io/catthehacker/ubuntu:act-latest
This commit is contained in:
@@ -8,6 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
update-packages:
|
update-packages:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -17,12 +19,13 @@ jobs:
|
|||||||
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
||||||
chmod 600 /mnt/default-key
|
chmod 600 /mnt/default-key
|
||||||
- name: Update packages
|
- name: Update packages
|
||||||
uses: docker://alpine/ansible:2.18.6
|
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/update-packages.yml
|
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/update-packages.yml
|
||||||
|
|
||||||
prune-images:
|
prune-images:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -32,12 +35,13 @@ jobs:
|
|||||||
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
||||||
chmod 600 /mnt/default-key
|
chmod 600 /mnt/default-key
|
||||||
- name: Prune ctr images
|
- name: Prune ctr images
|
||||||
uses: docker://alpine/ansible:2.18.6
|
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/prune-k3s.yml
|
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/prune-k3s.yml
|
||||||
|
|
||||||
update-proxmox:
|
update-proxmox:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -47,6 +51,5 @@ jobs:
|
|||||||
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
echo "${{ secrets.ANSIBLE_BECOME_PASS }}" > /mnt/become-pass.txt && \
|
||||||
chmod 600 /mnt/default-key
|
chmod 600 /mnt/default-key
|
||||||
- name: Update proxmox nodes
|
- name: Update proxmox nodes
|
||||||
uses: docker://alpine/ansible:2.18.6
|
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/update-proxmox.yml
|
ansible-playbook -i inventory.yml --vault-pass-file /mnt/become-pass.txt --key-file /mnt/default-key playbooks/update-proxmox.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user