Skip to content

chore: rm the migrations from crates/api #16

chore: rm the migrations from crates/api

chore: rm the migrations from crates/api #16

Workflow file for this run

name: Deploy xchange_api
on:
push:
branches:
- main
paths:
- "crates/api/**"
pull_request:
branches:
- main
paths:
- "crates/api/**"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: "mv docker/api/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_api:${{ github.sha }}
- name: Docker Push
run: docker push shawakash/xchange_api:${{ github.sha }}