From f9ab83882746453a540539b6eae17af9b9d629a0 Mon Sep 17 00:00:00 2001 From: GautamPatil Date: Mon, 25 Mar 2024 15:27:36 +0530 Subject: [PATCH] Update CI Workflow. --- .dockerignore | 3 ++- .github/workflows/ci.yml | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index b512c09..1dcef2d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +.env \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c918f7..4eb3380 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,18 @@ jobs: username: gautampatil1 password: ${{ secrets.DOCKER_PASSWORD }} + - name: Set up environment variables + run: | + echo "WDS_SOCKET_PORT=0" >> .env + echo "REACT_APP_FIREBASE_API_KEY=${{ secrets.REACT_APP_FIREBASE_API_KEY }}" >> .env + echo "REACT_APP_FIREBASE_AUTH_DOMAIN=${{ secrets.REACT_APP_FIREBASE_AUTH_DOMAIN }}" >> .env + echo "REACT_APP_FIREBASE_PROJECT_ID=${{ secrets.REACT_APP_FIREBASE_PROJECT_ID }}" >> .env + echo "REACT_APP_FIREBASE_STORAGE_BUCKET=${{ secrets.REACT_APP_FIREBASE_STORAGE_BUCKET }}" >> .env + echo "REACT_APP_FIREBASE_MESSAGING_SENDER_ID=${{ secrets.REACT_APP_FIREBASE_MESSAGING_SENDER_ID }}" >> .env + echo "REACT_APP_FIREBASE_APP_ID=${{ secrets.REACT_APP_FIREBASE_APP_ID }}" >> .env + echo "REACT_APP_FIREBASE_MEASUREMENT_ID=${{ secrets.REACT_APP_FIREBASE_MEASUREMENT_ID }}" >> .env + echo "REACT_APP_FIREBASE_DATABASE_URL=${{ secrets.REACT_APP_FIREBASE_DATABASE_URL }}" >> .env + - name: Build Docker image run: docker build -t gautampatil1/rezume:latest . @@ -29,4 +41,3 @@ jobs: docker login --username gautampatil1 --password ${{ secrets.GH_PAT }} ghcr.io docker tag gautampatil1/rezume:latest ghcr.io/gautampatil1/rezume:latest docker push ghcr.io/gautampatil1/rezume:latest - \ No newline at end of file