Commit acd94bc8 authored by Dương Nhật Khoa's avatar Dương Nhật Khoa

[tag]0.1-prod

parent e3fb281a
Pipeline #50705 canceled with stages
in 1 minute and 29 seconds
FROM registry.gitlab.com/meusolutions/vcci-news:base AS builder
ARG NEXT_PUBLIC_BACKEND_HOST=https://news.vccihcm.vn
ARG NEXT_PUBLIC_FRONTEND_HOST=https://news.vccihcm.vn
ENV NEXT_PUBLIC_BACKEND_HOST=$NEXT_PUBLIC_BACKEND_HOST
ENV NEXT_PUBLIC_FRONTEND_HOST=$NEXT_PUBLIC_FRONTEND_HOST
ENV ORVAL_SWAGGER_URL=$ORVAL_SWAGGER_URL
COPY . .
RUN node scripts/generate-api.mjs
......@@ -8,6 +15,12 @@ RUN npm run build
FROM node:22-alpine AS production
WORKDIR /app
ARG NEXT_PUBLIC_BACKEND_HOST=https://news.vccihcm.vn
ARG NEXT_PUBLIC_FRONTEND_HOST=https://news.vccihcm.vn
ENV NEXT_PUBLIC_BACKEND_HOST=$NEXT_PUBLIC_BACKEND_HOST
ENV NEXT_PUBLIC_FRONTEND_HOST=$NEXT_PUBLIC_FRONTEND_HOST
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules
......
......@@ -69,4 +69,4 @@ deploy:
refs:
- release
tags:
- runner-inet
- runner-inet-149
name: ENVIRONMENT-NAME-PROJECT-NAME
services:
app:
container_name: ENVIRONMENT-NAME-PROJECT-NAME
......@@ -8,7 +10,6 @@ services:
pull_policy: always
networks:
meu-solutions-product-alpha-net:
ipv4_address: 192.167.12.25
networks:
meu-solutions-product-alpha-net:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment