fix CD workflow
Some checks failed
CI / build-test (push) Successful in 43s
Deploy Staging (Docker) / deploy (push) Failing after 5s

This commit is contained in:
Do Manh Phuong 2026-05-10 23:12:36 +07:00
parent feb6c73bf9
commit ef4c1944be

View File

@ -26,15 +26,3 @@ jobs:
- name: Build - name: Build
run: npm run build run: npm run build
- name: Login Registry
if: github.event_name == 'push'
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USER }} --password-stdin
- 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