remove push
Some checks failed
Build and Deploy Backend / Build Backend Docker Image (push) Failing after 16s
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:49:48 +07:00
parent 60c31e1dd8
commit 6342f81215

View file

@ -54,7 +54,7 @@ jobs:
type=sha,prefix=
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/dev' }}
- name: Build Docker image
- name: Build and Push Docker image
uses: docker/build-push-action@v5
with:
context: ./Backend
@ -65,12 +65,6 @@ jobs:
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}:buildcache,mode=max
- name: Push Docker image
run: |
docker push ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}:${{ env.IMAGE_TAG }}
docker push ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}:latest
echo "✅ Image pushed to registry"
- name: Test image can run
run: |
# Quick test that image can start