Compare commits

..

1 Commits

Author SHA1 Message Date
4143ddbb7d feature: ci/cd pipeline
Some checks failed
ci/woodpecker/push/pipeline Pipeline was successful
ci/woodpecker/pr/pipeline Pipeline failed
2025-10-28 22:56:57 -03:00
2 changed files with 5 additions and 1 deletions

View File

@ -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
" "

View File

@ -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