From 044b71049a315c44453919a6b6c075cf96aad6ad Mon Sep 17 00:00:00 2001 From: Prem Basumatary Date: Tue, 11 Jun 2024 11:52:57 +0100 Subject: [PATCH] NIT-1279 passing env variables explicitly --- .github/workflows/restore-docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/restore-docs.yaml b/.github/workflows/restore-docs.yaml index fa07236..358de8e 100644 --- a/.github/workflows/restore-docs.yaml +++ b/.github/workflows/restore-docs.yaml @@ -54,7 +54,7 @@ jobs: S3_BUCKET_NAME=$(kubectl get secrets s3-bucket-output -o jsonpath='{.data.BUCKET_NAME}' | base64 -d) # Exec into the service pod and execute the script - kubectl exec $SERVICE_POD_NAME -- env S3_BUCKET_NAME=${S3_BUCKET_NAME} /bin/sh -c ' + kubectl exec $SERVICE_POD_NAME -- env S3_BUCKET_NAME=${S3_BUCKET_NAME} S3_OBJECT_KEY=${S3_OBJECT_KEY} JOB_TIER=${JOB_TIER} /bin/sh -c ' echo "object key being passed is ------ ${S3_OBJECT_KEY}" # check if object is present or not object_versions=$(aws s3api list-object-versions --bucket "$S3_BUCKET_NAME" --prefix "${S3_OBJECT_KEY}")