Files
ansible-role_podman-host/.gitea/workflows/linode.yml
T
Mike Holloway 5c75f85d9d
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Failing after 1m26s
tofu and molecule combined test, correct scenario flag, correct ANSIBLE_ROLES_PATH env var
2025-01-07 06:38:14 -05:00

35 lines
1.1 KiB
YAML

name: Gitea Actions - molecule test work
run-name: ${{ gitea.actor }} is running molecule test work
on:
push:
tags:
- 'linode-test'
jobs:
Explore-terraform-molecule-Gitea-Action:
env:
ANSIBLE_ROLES_PATH: '/workspace/seasharp/ansible-role_podman-host'
TF_VAR_token: "${{ secrets.LINODE_API_TOKEN }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: 'podman-host'
- uses: opentofu/setup-opentofu@v1
- name: tofu apply
run: "tofu init && tofu apply -auto-approve"
working-directory: "${{ gitea.workspace }}/podman-host/.gitea/tofu"
- name: Set up Python
uses: actions/setup-python@v2
- name: molecule test
run: |
export TARGET_IP_ADDRESS=$(tofu output -raw act_worker_ip_address)
cd ${{ gitea.workspace}}/podman-host/extensions
molecule test -s linode
working-directory: "${{ gitea.workspace }}/podman-host/.gitea/tofu"
- name: tofu destroy
run: "sleep 180 && tofu destroy -auto-approve"
working-directory: "${{ gitea.workspace }}/podman-host/.gitea/tofu"