From d50a129fc8c2102f2a220d7eaa5e04d3bfdff8dd Mon Sep 17 00:00:00 2001 From: usmansbk Date: Mon, 18 Dec 2023 15:01:28 +0100 Subject: [PATCH] nit --- .github/workflows/build.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7971a9f..9c16433 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,11 @@ on: jobs: test_and_build: + env: + DOTENV_ME: ${{ secrets.DOTENV_ME }} + DATABASE_URL: ${{ secrets.DATABASE_URL }} + DOTENV_KEY: ${{ secrets.DOTENV_KEY }} + TEST: "HELLO" runs-on: ubuntu-latest steps: - name: Checkout @@ -20,8 +25,6 @@ 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: @@ -30,16 +33,9 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build and push - env: - DOTENV_ME: ${{ secrets.DOTENV_ME }} - DATABASE_URL: ${{ secrets.DATABASE_URL }} - TEST: "HELLO" uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.repository }}:${{ github.ref_name }} - secrets: | - DOTENV_ME=${{ secrets.DOTENV_ME }} - DATABASE_URL=${{ secrets.DATABASE_URL }}