From 40ee71a89513d3e8c6b29435dd95fd87e8b04911 Mon Sep 17 00:00:00 2001
From: Niaz <tigrexspalterlp@gmail.com>
Date: Sat, 27 Feb 2021 18:06:18 +0100
Subject: [PATCH] [FIX] CI

---
 .github/workflows/docker-publish.yml | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index e058777..a153cda 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -1,6 +1,9 @@
 name: Docker
 
 on:
+  repository_dispatch:
+    types: backend-commit-event
+    
   push:
     # Publish `dev` as Docker `latest` image.
     branches:
@@ -33,21 +36,19 @@ jobs:
           else
             DOCKER_BUILDKIT=1 docker build . --file Dockerfile
           fi
-
-  # Push image to GitHub Packages.
-  # See also https://docs.docker.com/docker-hub/builds/
-  push:
+          
+  myEvent:
     # Ensure test job passes before pushing image.
     needs: test
 
     runs-on: ubuntu-latest
-    if: github.event_name == 'push'
+    if: github.event_name == 'backend-commit-event'
 
     steps:
       - uses: actions/checkout@v2
 
       - name: Build image
-        run: DOCKER_BUILDKIT=1 docker build . --file Dockerfile --tag $IMAGE_NAME
+        run: DOCKER_BUILDKIT=1 docker build /backend --file Dockerfile --tag $IMAGE_NAME
 
       - name: Login to Docker Hub
         uses: docker/login-action@v1
-- 
GitLab