From 8621f5d4232ad3fa33e3efe261c031e1bc9da588 Mon Sep 17 00:00:00 2001 From: enesonus Date: Tue, 14 Nov 2023 17:12:26 +0300 Subject: [PATCH] CI/CD env var adjustment --- .github/workflows/fly.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml index 8fbadac..cc8af6f 100644 --- a/.github/workflows/fly.yml +++ b/.github/workflows/fly.yml @@ -10,19 +10,15 @@ jobs: steps: - uses: actions/checkout@v3 - uses: superfly/flyctl-actions/setup-flyctl@master + # - run: | + # flyctl secrets set FLY_API_TOKEN="$FLY_API_TOKEN" \ + # DB_URL="$DB_URL" \ + # DB_USER="$DB_USER" \ + # DB_PASSWORD="$DB_PASSWORD" \ + # FIREBASE_CREDENTIALS="$FIREBASE_CREDENTIALS" \ + # --app ovatify-backend - run: | - flyctl secrets set FLY_API_TOKEN="$FLY_API_TOKEN" \ - DB_URL="$DB_URL" \ - DB_USER="$DB_USER" \ - DB_PASSWORD="$DB_PASSWORD" \ - FIREBASE_CREDENTIALS="$FIREBASE_CREDENTIALS" \ - --app ovatify-backend - env: - FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} - DB_URL: ${{ secrets.DB_URL }} - DB_USER: ${{ secrets.DB_USER }} - DB_PASSWORD: ${{ secrets.DB_PASSWORD }} - FIREBASE_CREDENTIALS: ${{ secrets.FIREBASE_CREDENTIALS }} + echo "${{ secrets.ENV_FILE }}" > .env - run: flyctl deploy --remote-only env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} \ No newline at end of file