Skip to content

feat: adds indexes on db tables and inits a rust api backend #2

feat: adds indexes on db tables and inits a rust api backend

feat: adds indexes on db tables and inits a rust api backend #2

Workflow file for this run

name: Deploy backend-rs-api
on:
push:
branches:
- dev
paths:
- "backend/rs_api/**"
pull_request:
branches:
- dev
paths:
- "backend/rs_api/**"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: "mv docker/rs_api/Dockerfile ."
- name: add secrets
env:
DOCKER_USER: ${{secrets.DOCKERHUB_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKERHUB_TOKEN}}
run: |
cd backend/rs_api
touch .env
printf 'PORT=%s\n' "8080" >> .env
cd ../..
- 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/paybox-rs-api:${{ github.sha }}
- name: Docker Push
run: docker push shawakash/paybox-rs-api:${{ github.sha }}