Skip to content

Merge pull request #41 from omar-sarfraz/static-analysis #18

Merge pull request #41 from omar-sarfraz/static-analysis

Merge pull request #41 from omar-sarfraz/static-analysis #18

Workflow file for this run

name: Backend CI
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login Dockerhub
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_TOKEN: ${{secrets.DOCKER_TOKEN}}
run: docker login -u $DOCKER_USERNAME -p $DOCKER_TOKEN
- name: Build Docker images for backend and graphql
env:
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: |
docker compose build backend
docker compose build graphql
- name: Push Docker images to DockerHub
run: |
docker push omarsarfraz/project-listings:backend
docker push omarsarfraz/project-listings:graphql