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 name: Docker
on: on:
repository_dispatch:
types: backend-commit-event
push: push:
# Publish `dev` as Docker `latest` image. # Publish `dev` as Docker `latest` image.
branches: branches:
...@@ -33,21 +36,19 @@ jobs: ...@@ -33,21 +36,19 @@ jobs:
else else
DOCKER_BUILDKIT=1 docker build . --file Dockerfile DOCKER_BUILDKIT=1 docker build . --file Dockerfile
fi fi
# Push image to GitHub Packages. myEvent:
# See also https://docs.docker.com/docker-hub/builds/
push:
# Ensure test job passes before pushing image. # Ensure test job passes before pushing image.
needs: test needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'push' if: github.event_name == 'backend-commit-event'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build image - 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 - name: Login to Docker Hub
uses: docker/login-action@v1 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