fix parameter
Some checks failed
Build and Deploy Backend / Build Backend Docker Image (push) Failing after 8s
Build and Deploy Backend / Deploy E-learning Backend to Dev Server (push) Has been skipped
Build and Deploy Backend / Notify Deployment Status (push) Failing after 1s

This commit is contained in:
Warunee Tamkoo 2026-02-10 11:24:33 +07:00
parent c35f4ce688
commit f01b9054b5

View file

@ -32,7 +32,7 @@ jobs:
- name: Log in to Container Registry - name: Log in to Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY_URL }} registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }} username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }} password: ${{ env.REGISTRY_PASSWORD }}
@ -44,8 +44,8 @@ jobs:
--no-cache \ --no-cache \
--pull \ --pull \
--file ./Backend/Dockerfile \ --file ./Backend/Dockerfile \
--tag ${{ env.REGISTRY_URL }}/${{ env.BACKEND_IMAGE_NAME }}:${{ env.IMAGE_TAG }} \ --tag ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}:${{ env.IMAGE_TAG }} \
--tag ${{ env.REGISTRY_URL }}/${{ env.BACKEND_IMAGE_NAME }}:latest \ --tag ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}:latest \
. .
echo "✅ Build successful!" echo "✅ Build successful!"
@ -53,14 +53,14 @@ jobs:
- name: Push Docker image - name: Push Docker image
run: | run: |
docker push ${{ env.REGISTRY_URL }}/${{ env.BACKEND_IMAGE_NAME }}:${{ env.IMAGE_TAG }} docker push ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}:${{ env.IMAGE_TAG }}
docker push ${{ env.REGISTRY_URL }}/${{ env.BACKEND_IMAGE_NAME }}:latest docker push ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}:latest
echo "✅ Image pushed to registry" echo "✅ Image pushed to registry"
- name: Test image can run - name: Test image can run
run: | run: |
# Quick test that image can start # Quick test that image can start
docker run --rm ${{ env.REGISTRY_URL }}/${{ env.BACKEND_IMAGE_NAME }}:${{ env.IMAGE_TAG }} node --version docker run --rm ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}:${{ env.IMAGE_TAG }} node --version
# build: # build:
# name: Build Backend Docker Image # name: Build Backend Docker Image