Skip to content

fix(devops): delete name field in docker-compose.yml #4

fix(devops): delete name field in docker-compose.yml

fix(devops): delete name field in docker-compose.yml #4

Workflow file for this run

name: backend-worklow
on:
push:
paths:
- 'backend/**'
- docker-compose.yml
- docker-compose.dev.yml
- '.github/workflows/backend_build.yml'
pull_request:
branches:
- main
- staging
- develop
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory:
backend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Maven
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Build Docker backend-prod Image
run: docker compose -f docker-compose.yml build db
- name: Run Docker backend-prod Container
run: docker compose -f docker-compose.yml up -d db
- name: Run Tests
run: mvn clean test
- name: Stop Docker backend-prod Container
run: docker compose -f docker-compose.yml down