Skip to content

Commit

Permalink
attempt at docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbwallace123 committed Jan 19, 2024
1 parent 540ab35 commit ae671ec
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/docker_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: build_docker

on:
push:
branches:
- main
- dev
#pull_request:
# branches:
# - main
# - dev
workflow_call:
secrets:
DOCKERENV:
required: true
description: 'Access to AWS RDS server'

jobs:
build_docker:
runs-on: ubuntu-20.04

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Build and run Docker Compose
run: |
docker-compose -f --env-file=${{secrets.DOCKERENV}} ../docker/calcium_imaging_worker/dist/debian/docker-compose-calcium_imaging_worker.yml up --build -d
docker-compose -f --env-file=${{secrets.DOCKERENV}} ../docker/spike_sorting_local_worker/dist/debian/docker-compose-spike_sorting_local_worker.yml up --build -d
docker-compose -f --env-file=${{secrets.DOCKERENV}} ../docker/standard_worker/dist/debian/docker-compose-standard_worker.yml up --build -d
# Add additional steps here for testing or other actions

- name: Clean up Docker Compose
run: |
docker-compose -f ../docker/calcium_imaging_worker/dist/debian/docker-compose-calcium_imaging_worker.yml down
docker-compose -f ../docker/spike_sorting_local_worker/dist/debian/docker-compose-spike_sorting_local_worker.yml down
docker-compose -f ../docker/standard_worker/dist/debian/docker-compose-standard_worker.yml down

0 comments on commit ae671ec

Please sign in to comment.