[deploy-all] testing stuff
Infrastructure / Check and run Ansbile playbooks (push) Successful in 1m35s
Details
Infrastructure / Check and run Ansbile playbooks (push) Successful in 1m35s
Details
This commit is contained in:
parent
d46e074ab1
commit
8aa40d27de
|
@ -46,18 +46,22 @@ jobs:
|
||||||
with:
|
with:
|
||||||
files: infra/**-playbook.yaml
|
files: infra/**-playbook.yaml
|
||||||
|
|
||||||
- name: Run changed playbooks
|
- name: Get playbooks
|
||||||
if: env.DEPLOY == 'some'
|
id: playbooks
|
||||||
env:
|
if: env.DEPLOY != 'none'
|
||||||
PROXMOX_HOST: ${{ secrets.PROXMOX_HOST }}
|
run: |
|
||||||
PROXMOX_TOKEN_ID: ${{ secrets.PROXMOX_TOKEN_ID }}
|
if [[ "${{ env.DEPLOY }}" == "some" ]]; then
|
||||||
PROXMOX_TOKEN_SECRET: ${{ secrets.PROXMOX_TOKEN_SECRET }}
|
export TO_RUN="${{ steps.files.outputs.all_changed_files }}"
|
||||||
run: ansible-playbook --inventory ./inventory ${{ steps.files.outputs.all_changed_files }}
|
else
|
||||||
|
export TO_RUN="$(find . -wholename './infra/*-playbook.yaml' -type f)"
|
||||||
|
fi
|
||||||
|
echo "will run playbooks: $TO_RUN"
|
||||||
|
echo "to_run=$TO_RUN" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Run all playbooks
|
# - name: Run changed playbooks
|
||||||
if: env.DEPLOY == 'all'
|
# if: env.DEPLOY == 'none'
|
||||||
env:
|
# env:
|
||||||
PROXMOX_HOST: ${{ secrets.PROXMOX_HOST }}
|
# PROXMOX_HOST: ${{ secrets.PROXMOX_HOST }}
|
||||||
PROXMOX_TOKEN_ID: ${{ secrets.PROXMOX_TOKEN_ID }}
|
# PROXMOX_TOKEN_ID: ${{ secrets.PROXMOX_TOKEN_ID }}
|
||||||
PROXMOX_TOKEN_SECRET: ${{ secrets.PROXMOX_TOKEN_SECRET }}
|
# PROXMOX_TOKEN_SECRET: ${{ secrets.PROXMOX_TOKEN_SECRET }}
|
||||||
run: ansible-playbook --inventory ./inventory $(find . -wholename "*/infra/*-playbook.yaml" -type f)
|
# run: ansible-playbook --inventory ./inventory ${{ steps.files.outputs.all_changed_files }}
|
||||||
|
|
Loading…
Reference in New Issue