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 }}