From d2f546ae24920e9dc32e5a790a560f6aa1d8eccb Mon Sep 17 00:00:00 2001 From: b-dulaney Date: Sun, 24 Mar 2024 17:59:56 -0600 Subject: [PATCH] chore: add env step to CI action --- .github/workflows/main.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 69a2abf..0769379 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,20 +9,22 @@ jobs: build: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v4 - - - name: Login to Docker Hub + - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Set up Docker Buildx + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - - name: Build and push + - name: Create env file + run: | + touch .env + echo SUPABASE_URL=${{ secrets.SUPABASE_URL }} >> .env + echo SUPABASE_SERVICE_ROLE_KEY=${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} >> .env + cat .env + - name: Build and push uses: docker/build-push-action@v5 with: context: .