Skip to content

Merge pull request #42 from 8shaws/trades #10

Merge pull request #42 from 8shaws/trades

Merge pull request #42 from 8shaws/trades #10

Workflow file for this run

name: Deploy xchange_engine
on:
push:
branches:
- main
paths:
- "crates/engine/**"
pull_request:
branches:
- main
paths:
- "crates/engine/**"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: "mv docker/engine/Dockerfile ."
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKERHUB_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKERHUB_TOKEN}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --tag shawakash/xchange_engine:${{ github.sha }}
- name: Docker Push
run: docker push shawakash/xchange_engine:${{ github.sha }}