Files
ansible-role_podman-host/.gitea/workflows/linode.yml
T
Mike Holloway 9dad63a0e0
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 4m51s
Deploy Key gitea actions secret
2025-01-07 18:12:38 -05:00

37 lines
1.2 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
continue-on-error: true
run: |
export TARGET_IP_ADDRESS=$(tofu output -raw act_worker_ip_address)
export ACT_RUNNER_DEPLOY_KEY=${{ secrets.ACT_RUNNER_DEPLOY_KEY }}
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"