Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: docker image build and validation checks #39

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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
Loading