| 6 |
pull_request: |
pull_request: |
| 7 |
branches: [ "main" ] |
branches: [ "main" ] |
| 8 |
|
|
| 9 |
|
env: |
| 10 |
|
DOCKERHUB_PLATFORMS: linux/amd64,linux/arm64 |
| 11 |
|
RUN_PLATFORM: linux/amd64 |
| 12 |
|
|
| 13 |
jobs: |
jobs: |
| 14 |
|
|
| 15 |
build: |
build: |
| 23 |
submodules: recursive |
submodules: recursive |
| 24 |
fetch-depth: 0 # fetch all history if the action needs it |
fetch-depth: 0 # fetch all history if the action needs it |
| 25 |
|
|
| 26 |
- name: Build and run the stack |
- name: Build images |
| 27 |
# Build images and run containers in detached mode |
# Build images and run containers in detached mode |
| 28 |
run: docker compose up --build -d --wait --wait-timeout 60 |
run: sh -x build.sh |
|
|
|
|
- name: Display app version |
|
|
# Execute tests inside one of the running containers |
|
|
run: docker compose exec bbsd /usr/local/lbbs/bin/bbsd -v |
|
|
|
|
|
- name: Clean up |
|
|
# Stop and remove all containers, networks, and volumes |
|
|
run: docker compose down |
|
|
if: always() # Ensure cleanup runs even if tests fail |
|