fix: better ci and docker build (#20)
Release package / release (push) Successful in 28m17s

Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com>
Reviewed-on: #20
This commit was merged in pull request #20.
This commit is contained in:
2026-03-31 07:52:42 +00:00
parent 423d4e3436
commit 2913fa0d73
2 changed files with 19 additions and 20 deletions
+18 -18
View File
@@ -84,24 +84,6 @@ jobs:
VERSION=$(node -p "require('./package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Commit & Push Changes
if: gitea.ref == 'refs/heads/main'
run: |
if [ -n "$(git status --porcelain)" ]; then
git config --global user.name "gitea-actions"
git config --global user.email "actions-user@noreply.git.demonkernel.io.vn"
REPO_NAME="${{ gitea.repository }}"
git remote set-url origin ssh://git@$TARGET_IP:222/${REPO_NAME}.git
git rm -r --cached .
git add .
git commit -m "chore: release [ci skip]"
git push
fi
- name: Log in to Gitea Container Registry
if: gitea.ref == 'refs/heads/main'
uses: docker/login-action@v3
@@ -133,3 +115,21 @@ jobs:
git.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:latest
git.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:${{ steps.meta.outputs.version }}
- name: Commit & Push Changes
if: gitea.ref == 'refs/heads/main'
run: |
if [ -n "$(git status --porcelain)" ]; then
git config --global user.name "gitea-actions"
git config --global user.email "actions-user@noreply.git.demonkernel.io.vn"
REPO_NAME="${{ gitea.repository }}"
git remote set-url origin ssh://git@$TARGET_IP:222/${REPO_NAME}.git
git rm -r --cached .
git add .
git commit -m "chore: release [ci skip]"
git push
fi
+1 -2
View File
@@ -19,8 +19,7 @@ COPY . .
# Tắt dữ liệu thu thập của Next.js trong quá trình build
ENV NEXT_TELEMETRY_DISABLED 1
RUN npm install -g pnpm
RUN pnpm run build
RUN npm run build
# --- Giai đoạn 3: Runner (Sản phẩm cuối) ---
FROM node:25-alpine AS runner