From b728198661c53361afc7ed0c5d5e76fd1ddc9cc7 Mon Sep 17 00:00:00 2001
From: Ilia Eriomenco <ilia.eriomenco@endava.com>
Date: Wed, 14 Apr 2021 13:57:43 +0300
Subject: [PATCH] ci: add vars in k8s deploy

---
 .gitlab-ci.elife.k8s.yml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.elife.k8s.yml b/.gitlab-ci.elife.k8s.yml
index dee41b9b64..20f4da043d 100644
--- a/.gitlab-ci.elife.k8s.yml
+++ b/.gitlab-ci.elife.k8s.yml
@@ -1,10 +1,6 @@
 variables:
   IMAGE_ORG: kotahi
   IMAGE_NAME: kotahi-elife
-  AWS_ACCESS_KEY_ID: $ELIFE_AWS_ACCESS_KEY_ID
-  AWS_SECRET_ACCESS_KEY: $ELIFE_AWS_SECRET_ACCESS_KEY
-  AWS_DEFAULT_REGION: $ELIFE_AWS_DEFAULT_REGION
-  ELIFE_CLUSTER_NAME: eks-elife-kotahi
 
 stages:
   #- build
@@ -42,7 +38,11 @@ stages:
 deploy:
   stage: deploy
   image: jshimko/kube-tools-aws:latest
-  environment: production
+  variables:
+    AWS_ACCESS_KEY_ID: $ELIFE_AWS_ACCESS_KEY_ID
+    AWS_SECRET_ACCESS_KEY: $ELIFE_AWS_SECRET_ACCESS_KEY
+    AWS_DEFAULT_REGION: $ELIFE_AWS_DEFAULT_REGION
+    ELIFE_CLUSTER_NAME: eks-elife-kotahi
   # before_script:
   #   - touch ~/.elife_k8s_config
   #   - echo "${ELIFE_K8S_CLUSTER_CONFIG}" >> ~/.elife_k8s_config
-- 
GitLab