chore: init engine and docker #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy xchange_notif_worker | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "crates/notif_worker/**" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "crates/notif_worker/**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: "mv docker/notif_worker/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_notif_worker:${{ github.sha }} | |
- name: Docker Push | |
run: docker push shawakash/xchange_notif_worker:${{ github.sha }} |