Skip to content

feat: add docker-compose.prod.yml for deployment #76

feat: add docker-compose.prod.yml for deployment

feat: add docker-compose.prod.yml for deployment #76

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
image:
name: Test Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# Split the build into two steps to identify which step fails
- name: Build bundler image
run: docker buildx build --load -t bundler-image:latest ./bundler
- name: Build oba image
run: docker buildx build --load -t oba-image:latest ./oba
services:
name: Test Services
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Docker Compose up
run: docker-compose up -d
- name: Wait for services to be up
run: sleep 5
- name: Test the services
run: |
chmod +x ./bin/validate.sh
./bin/validate.sh
- name: Docker Compose down
if: always()
run: docker-compose down