From 3cd22e02f2d3b15ffc85fb26c47aa2dc6b127ed3 Mon Sep 17 00:00:00 2001 From: usmansbk Date: Mon, 18 Dec 2023 14:18:22 +0100 Subject: [PATCH] build --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48701e4..e3a187a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,8 @@ jobs: run: yarn - name: Run tests run: yarn test + env: + DOTENV_KEY: ${{ secrets.DOTENV_KEY }} - name: Login to Docker Hub uses: docker/login-action@v2 with: @@ -29,11 +31,10 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Build and push uses: docker/build-push-action@v3 - env: - DOTENV_KEY: ${{ secrets.DOTENV_KEY }} - DATABASE_URL: ${{ secrets.DATABASE_URL }} with: context: . file: ./Dockerfile push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.repository }}:${{ github.ref_name }} + env: + DOTENV_KEY: ${{ secrets.DOTENV_ME }}