Refactor file path and update workflow name in actions-validate.yml

Add setup-terraform-env action.yml
Update setup-k8s-env action.yml with ssh-auth-sock input
This commit is contained in:
2024-09-30 22:25:55 +02:00
parent adfff953e7
commit c1d8d67cbc
4 changed files with 49 additions and 21 deletions
+5 -2
View File
@@ -10,6 +10,9 @@ inputs:
k8s-target:
description: "The target host to deploy the K8S applications"
default: "microk8s"
ssh-auth-sock:
description: "The SSH_AUTH_SOCK environment variable"
default: "/tmp/ssh_agent.sock"
runs:
using: "composite"
@@ -19,7 +22,7 @@ runs:
env:
VAULT_MASTER_PASSWORD: ${{ inputs.vault-master-password }}
ANSIBLE_USER: ${{ inputs.ansible-user }}
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
SSH_AUTH_SOCK: ${{ inputs.ssh-auth-sock }}
K8S_TARGET: ${{ inputs.k8s-target }}
run: |
mkdir -p ~/.kube
@@ -30,7 +33,7 @@ runs:
env:
VAULT_MASTER_PASSWORD: ${{ inputs.vault-master-password }}
ANSIBLE_USER: ${{ inputs.ansible-user }}
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
SSH_AUTH_SOCK: ${{ inputs.ssh-auth-sock }}
K8S_TARGET: ${{ inputs.k8s-target }}
run: |
# Get Hostname and IP address of the target