Compare commits
1 Commits
b78a69dbe8
...
4143ddbb7d
| Author | SHA1 | Date | |
|---|---|---|---|
| 4143ddbb7d |
@ -17,6 +17,9 @@ steps:
|
|||||||
from_secret: DOCKER_USER
|
from_secret: DOCKER_USER
|
||||||
password:
|
password:
|
||||||
from_secret: DOCKER_PASSWORD
|
from_secret: DOCKER_PASSWORD
|
||||||
|
build_args:
|
||||||
|
NEXT_PUBLIC_API_BASE_URL:
|
||||||
|
from_secret: NEXT_PUBLIC_API_BASE_URL
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${CI_COMMIT_SHA}
|
- ${CI_COMMIT_SHA}
|
||||||
@ -48,7 +51,6 @@ steps:
|
|||||||
docker rm mangamochi-frontend 2>/dev/null || true &&
|
docker rm mangamochi-frontend 2>/dev/null || true &&
|
||||||
docker run -d --name mangamochi-frontend \
|
docker run -d --name mangamochi-frontend \
|
||||||
--restart always \
|
--restart always \
|
||||||
--env-file /home/rov/mangamochi/.env \
|
|
||||||
-p 80:3000 \
|
-p 80:3000 \
|
||||||
$IMAGE
|
$IMAGE
|
||||||
"
|
"
|
||||||
|
|||||||
@ -14,6 +14,8 @@ RUN npm ci
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
|
ARG NEXT_PUBLIC_API_BASE_URL
|
||||||
|
ENV NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Stage 2: Production stage
|
# Stage 2: Production stage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user