-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 946 Bytes
/
Backend-CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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