From b5ba589815bfa50bb19075bef445d69ea22dbe93 Mon Sep 17 00:00:00 2001 From: Qarch Date: Mon, 1 Apr 2024 21:23:56 +0330 Subject: [PATCH] test:cd --- .github/workflows/cd.yml | 5 ++++- start.sh | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index fde13e8..ea3765c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -33,8 +33,11 @@ jobs: password: ${{ secrets.GIT_PERSONAL_ACCESS_TOKEN }} - name: Load secrets and save to app.env + env: + APP_ENV_FILE: ${{ secrets.APP_ENV }} run: | - echo $APP_ENV | base64 --decode > app.env + echo $APP_ENV_FILE | base64 --decode > app.env + source app.env - name: Extract metadata (tags, labels) for Docker id: meta diff --git a/start.sh b/start.sh index 908aa4b..1a1e2fb 100755 --- a/start.sh +++ b/start.sh @@ -2,8 +2,8 @@ set -e -echo "start the app" -source /app.env +echo "readable env" source /app/app.env +echo "start the app" exec "$@"