From 6b33ae4238c7f54cc801b99c118f3117ef7a80f9 Mon Sep 17 00:00:00 2001 From: Sina Chaichi Maleki Date: Fri, 22 May 2026 20:29:20 +0200 Subject: [PATCH] Add load secrets logic to deployment --- .github/workflows/deploy-staging.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 5db2171..a7e2ce7 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -27,6 +27,8 @@ jobs: id: login-ecr uses: aws-actions/amazon-ecr-login@v2 + - name: Load secrets to app.env + run: aws secretsmanager get-secret-value --secret-id gault_secrets --query SecretString --output text | jq -r 'to_entries|map("\(.key)=\(.value)")|.[]' > app.env - name: Build, tag, and push docker image to Amazon ECR env: REGISTRY: ${{ steps.login-ecr.outputs.registry }}