Skip to content
Snippets Groups Projects
Unverified Commit 40ee71a8 authored by Niaz's avatar Niaz Committed by GitHub
Browse files

[FIX] CI

parent ad162409
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment