From eae8c9e6fd3562d67ce6a6ec7e662246d0c1a2a7 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 25 Sep 2022 17:36:47 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8966804..b51ddc5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -69,14 +69,14 @@ ansible: stage: ansible variables: DEBIAN_FRONTEND: noninteractive - K8S_AUTH_KUBECONFIG: $kubeconfig + K8S_AUTH_KUBECONFIG: config image: name: ubuntu:latest before_script: - apt update && apt install tzdata ansible python3-pip -y - pip install kubernetes - ansible-galaxy collection install kubernetes.core - - echo $kubeconfig > config + - cat $kubeconfig > config script: - ansible-playbook $CI_PROJECT_DIR/main.yml needs: @@ -86,6 +86,10 @@ ansible: - terraform.tf - terraform.tfvars - main.yml + artifacts: + when: always + paths: + - $CI_PROJECT_DIR destroy: stage: destroy