Refactor workflow file to include Ansible environment setup and get host info action, and setup Kubernetes environment
This commit is contained in:
@@ -29,13 +29,29 @@ jobs:
|
||||
- name: Setup environment
|
||||
uses: ./.github/actions/setup-env
|
||||
|
||||
- name: Setup Ansible Environment
|
||||
id: setup_ansible_env
|
||||
uses: ./.github/actions/setup-ansible-env
|
||||
with:
|
||||
vault-master-password: ${{ secrets.VAULT_MASTER_PASSWORD }}
|
||||
ansible-user: ${{ secrets.ANSIBLE_USER }}
|
||||
host-group: microk8s
|
||||
|
||||
- name: Setup Terraform Environment
|
||||
uses: ./.github/actions/setup-terraform-env
|
||||
|
||||
- name: Setup Kubernetes Environment
|
||||
uses: ./.github/actions/setup-k8s-env
|
||||
with:
|
||||
vault-master-password: ${{ secrets.VAULT_MASTER_PASSWORD }}
|
||||
ansible-user: ${{ secrets.ANSIBLE_USER }}
|
||||
|
||||
- name: Terraform Init and Validate
|
||||
env:
|
||||
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
|
||||
run: |
|
||||
cd terraform/k8sapps
|
||||
sectool exec terraform init
|
||||
terraform validate
|
||||
sectool exec terraform validate
|
||||
sectool exec terraform fmt -check
|
||||
sectool exec terraform plan
|
||||
|
||||
Reference in New Issue
Block a user