Files
ansible-role_podman-host/.gitea/workflows/linode.yml
T
Mike Holloway cc7db336bb
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 4m53s
Quotes around interpolated gitea actions secret as exported env var in run: step
2025-01-07 18:38:37 -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"