File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ jobs:
1717 run : echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
1818
1919 - name : Build the Docker image
20- env :
21- PROD_API_URL : ${{ secrets.PROD_API_URL }}
22- STAGE_API_URL : ${{ secrets.STAGE_API_URL }}
23- STAGE_API_BASE_URL : ${{ secrets.STAGE_API_BASE_URL }}
24- PROD_API_BASE_URL : ${{ secrets.PROD_API_BASE_URL }}
2520 run : |
26- docker build -t pawanlive/rc-fe:latest .
21+ docker build \
22+ --build-arg PROD_API_URL=${{ secrets.PROD_API_URL }} \
23+ --build-arg STAGE_API_URL=${{ secrets.STAGE_API_URL }} \
24+ --build-arg STAGE_API_BASE_URL=${{ secrets.STAGE_API_BASE_URL }} \
25+ --build-arg PROD_API_BASE_URL=${{ secrets.PROD_API_BASE_URL }} \
26+ -t pawanlive/rc-fe:latest .
2727
2828 - name : Push the Docker image to Docker Hub
2929 run : |
Original file line number Diff line number Diff line change 11# Use Node.js 18 as the base image
22FROM node:20-alpine as builder
33
4+ # Declare build arguments
5+ ARG PROD_API_URL
6+ ARG STAGE_API_URL
7+ ARG STAGE_API_BASE_URL
8+ ARG PROD_API_BASE_URL
9+
410# Set working directory
511WORKDIR /app
612
You can’t perform that action at this time.
0 commit comments