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"