From 933906694d85910da4f1feed8a44452acf8bc197 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Tue, 21 Nov 2023 13:44:16 +0800 Subject: [PATCH] ci: pass K8S secrets to envs (#5974) --- .github/workflows/production.yml | 6 +++--- .github/workflows/staging.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 0dc2b311bab..37c6d496b3c 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -80,9 +80,9 @@ jobs: - name: Deploy 🚀 run: | - export NAMESPACE="deriv-com-production" - export "KUBE_SERVER=${{ secrets.KUBE_SERVER }}" - export "SERVICEACCOUNT_TOKEN=${{ inputs.SERVICEACCOUNT_TOKEN }}" + echo "NAMESPACE=deriv-com-production" >> $GITHUB_ENV + echo "KUBE_SERVER=${{ secrets.KUBE_SERVER }}" >> $GITHUB_ENV + echo "SERVICEACCOUNT_TOKEN=${{ secrets.SERVICEACCOUNT_TOKEN }}" >> $GITHUB_ENV git clone https://github.com/binary-com/devops-ci-scripts cd devops-ci-scripts/k8s-build_tools echo ${{ secrets.CA_CRT}} | base64 --decode > ca.crt diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 26df857fc70..8958ec8614b 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -77,9 +77,9 @@ jobs: - name: Deploy 🚀 run: | - export NAMESPACE="deriv-com-staging" - export "KUBE_SERVER=${{ secrets.KUBE_SERVER }}" - export "SERVICEACCOUNT_TOKEN=${{ secrets.SERVICEACCOUNT_TOKEN }}" + echo "NAMESPACE=deriv-com-staging" >> $GITHUB_ENV + echo "KUBE_SERVER=${{ secrets.KUBE_SERVER }}" >> $GITHUB_ENV + echo "SERVICEACCOUNT_TOKEN=${{ secrets.SERVICEACCOUNT_TOKEN }}" >> $GITHUB_ENV git clone https://github.com/binary-com/devops-ci-scripts cd devops-ci-scripts/k8s-build_tools echo ${{ secrets.CA_CRT}} | base64 --decode > ca.crt