From a93c40d68bf29ebbd12552f559d21f3086416b0c Mon Sep 17 00:00:00 2001 From: DhanshCOSQ Date: Wed, 11 Jun 2025 15:14:52 +0530 Subject: [PATCH] Added code to create a file for private key --- .gitea/workflows/deploy-dev.yaml | 6 ++++++ .gitea/workflows/deploy-qa.yaml | 6 ++++++ .gitea/workflows/deploy.yaml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/.gitea/workflows/deploy-dev.yaml b/.gitea/workflows/deploy-dev.yaml index f0f0a82..cbb62b4 100644 --- a/.gitea/workflows/deploy-dev.yaml +++ b/.gitea/workflows/deploy-dev.yaml @@ -25,6 +25,12 @@ jobs: - name: Copy .env.example to .env run: cp functions/.env.example functions/.env + - name: Create private key file + run: | + mkdir -p functions/assets/keys + echo "${{ secrets.FITLIEN_PRIVATEKEY_DEV }}" > functions/assets/keys/fitLien_private.pem + chmod 600 functions/assets/keys/fitLien_private.pem + - name: Replace variables in .env run: | sed -i "s/#{TWILIO_ACCOUNT_SID}#/${{ secrets.TWILIO_ACCOUNT_SID }}/" functions/.env diff --git a/.gitea/workflows/deploy-qa.yaml b/.gitea/workflows/deploy-qa.yaml index c868dcb..e57c4bc 100644 --- a/.gitea/workflows/deploy-qa.yaml +++ b/.gitea/workflows/deploy-qa.yaml @@ -25,6 +25,12 @@ jobs: - name: Copy .env.example to .env run: cp functions/.env.example functions/.env + - name: Create private key file + run: | + mkdir -p functions/assets/keys + echo "${{ secrets.FITLIEN_PRIVATEKEY_DEV }}" > functions/assets/keys/fitLien_private.pem + chmod 600 functions/assets/keys/fitLien_private.pem + - name: Replace variables in .env run: | sed -i "s/#{TWILIO_ACCOUNT_SID}#/${{ secrets.TWILIO_ACCOUNT_SID }}/" functions/.env diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index dbc0dd5..8ce1e58 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -25,6 +25,12 @@ jobs: - name: Copy .env.example to .env run: cp functions/.env.example functions/.env + - name: Create private key file + run: | + mkdir -p functions/assets/keys + echo "${{ secrets.FITLIEN_PRIVATEKEY_DEV }}" > functions/assets/keys/fitLien_private.pem + chmod 600 functions/assets/keys/fitLien_private.pem + - name: Replace variables in .env run: | sed -i "s/#{TWILIO_ACCOUNT_SID}#/${{ secrets.TWILIO_ACCOUNT_SID }}/" functions/.env