Skip to content

Commit

Permalink
check dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
SAINIAbhishek committed Oct 3, 2024
1 parent 3dabdbf commit 71cf547
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,42 +113,42 @@ jobs:
path: /build

# Step: Build the project
build-production:
needs: [build-development]
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout Code
uses: actions/checkout@v3

# Restore Modules cache
- name: Restore Modules Cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-auth-${{ hashFiles('package-lock.json') }}

- name: Build for production
run: npm run build
working-directory: ./
env:
PORT: ${{ vars.API_PORT }}
MONGO_URI: ${{ vars.MONGO_URI }}
MONGO_DB_HOST: ${{ vars.MONGO_DB_HOST }}
TOKEN_ISSUER: ${{ vars.TOKEN_ISSUER}}
TOKEN_AUDIENCE: ${{ vars.TOKEN_AUDIENCE}}
CORS_URL: ${{ vars.CORS_URL}}
FRONTEND_RESET_URL: ${{ vars.FRONTEND_RESET_URL}}
API_VERSION: ${{ vars.API_VERSION}}
ACCESS_TOKEN_SECRET_KEY: ${{ secrets.ACCESS_TOKEN_SECRET_KEY}}
MAILTRAP_USERNAME: ${{ secrets.MAILTRAP_USERNAME}}
MAILTRAP_PASSWORD: ${{ secrets.MAILTRAP_PASSWORD}}
MAILTRAP_HOST: ${{ vars.MAILTRAP_HOST}}
REFRESH_TOKEN_SECRET_KEY: ${{ secrets.REFRESH_TOKEN_SECRET_KEY}}
MAILTRAP_EMAIL_ENV: ${{ vars.MAILTRAP_EMAIL_ENV}}

- name: Save Production Build Artifacts
uses: actions/upload-artifact@v4
with:
name: api-build
path: /build
# build-production:
# needs: [build-development]
# runs-on: ubuntu-latest
# environment: production
# steps:
# - name: Checkout Code
# uses: actions/checkout@v3

# # Restore Modules cache
# - name: Restore Modules Cache
# uses: actions/cache@v3
# with:
# path: node_modules
# key: ${{ runner.os }}-auth-${{ hashFiles('package-lock.json') }}

# - name: Build for production
# run: npm run build
# working-directory: ./
# env:
# PORT: ${{ vars.API_PORT }}
# MONGO_URI: ${{ vars.MONGO_URI }}
# MONGO_DB_HOST: ${{ vars.MONGO_DB_HOST }}
# TOKEN_ISSUER: ${{ vars.TOKEN_ISSUER}}
# TOKEN_AUDIENCE: ${{ vars.TOKEN_AUDIENCE}}
# CORS_URL: ${{ vars.CORS_URL}}
# FRONTEND_RESET_URL: ${{ vars.FRONTEND_RESET_URL}}
# API_VERSION: ${{ vars.API_VERSION}}
# ACCESS_TOKEN_SECRET_KEY: ${{ secrets.ACCESS_TOKEN_SECRET_KEY}}
# MAILTRAP_USERNAME: ${{ secrets.MAILTRAP_USERNAME}}
# MAILTRAP_PASSWORD: ${{ secrets.MAILTRAP_PASSWORD}}
# MAILTRAP_HOST: ${{ vars.MAILTRAP_HOST}}
# REFRESH_TOKEN_SECRET_KEY: ${{ secrets.REFRESH_TOKEN_SECRET_KEY}}
# MAILTRAP_EMAIL_ENV: ${{ vars.MAILTRAP_EMAIL_ENV}}

# - name: Save Production Build Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: api-build
# path: /build

0 comments on commit 71cf547

Please sign in to comment.