From d79c44eb7085e5cad39e439ffef43f566c2c2463 Mon Sep 17 00:00:00 2001 From: Andre Wlodkovski Date: Tue, 2 Apr 2024 19:57:34 -0300 Subject: [PATCH] Parametrize EKS deployment GitHub Action --- .github/workflows/deploy-eks.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy-eks.yml b/.github/workflows/deploy-eks.yml index b41c476..60d2f14 100644 --- a/.github/workflows/deploy-eks.yml +++ b/.github/workflows/deploy-eks.yml @@ -4,19 +4,19 @@ on: workflow_dispatch: env: - ECR_REPOSITORY: authentication-api - EKS_CLUSTER_NAME: default-cluster - AWS_REGION: us-east-1 - IMAGE_NAME: authentication-api - NODE_ENV: development - LOG_STRATEGY: CONSOLE - SECRETS_LIST: "" + ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY || 'authentication-api' }} + EKS_CLUSTER_NAME: ${{ vars.EKS_CLUSTER_NAME || 'default-cluster' }} + AWS_REGION: ${{ vars.AWS_REGION || 'us-east-1' }} + IMAGE_NAME: ${{ vars.IMAGE_NAME || 'authentication-api' }} + NODE_ENV: ${{ vars.NODE_ENV || 'development' }} + LOG_STRATEGY: ${{ vars.LOG_STRATEGY || 'CONSOLE' }} + SECRETS_LIST: ${{ vars.SECRETS_LIST || '' }} - PASSWORD_SALT: "10" - JWT_SECRET: "" - JWT_EXPIRE_MINUTES: "60" - JWT_COOKIE_KEY: "JWT_COOKIE" - DATABASE_URL: "" + PASSWORD_SALT: ${{ secrets.PASSWORD_SALT || '10' }} + JWT_SECRET: ${{ secrets.JWT_SECRET }} + JWT_EXPIRE_MINUTES: ${{ secrets.JWT_EXPIRE_MINUTES || '60' }} + JWT_COOKIE_KEY: ${{ secrets.JWT_COOKIE_KEY || 'JWT_COOKIE' }} + DATABASE_URL: ${{ secrets.DATABASE_URL }} jobs: