fix UI and add CI/CD 4
Some checks failed
CI / build-test (push) Failing after 56s
Deploy Staging (Docker) / deploy (push) Failing after 6s

This commit is contained in:
Do Manh Phuong 2026-05-10 22:07:24 +07:00
parent 2fcffbceac
commit 02c33b692b

View File

@ -26,8 +26,16 @@ jobs:
- name: Build - name: Build
run: npm run build run: npm run build
- name: Upload dist - name: Login Registry
uses: actions/upload-artifact@v4 if: github.event_name == 'push'
with: run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USER }} --password-stdin
name: dist
path: dist - name: Build & Push CI Image
if: github.event_name == 'push'
env:
IMAGE: ${{ secrets.REGISTRY_URL }}/${{ secrets.IMAGE_NAME }}
run: |
docker build --build-arg NODE_VERSION=22.14.0 -t $IMAGE:ci-${{ github.sha }} -t $IMAGE:ci-latest .
docker push $IMAGE:ci-${{ github.sha }}
docker push $IMAGE:ci-latest