-
Notifications
You must be signed in to change notification settings - Fork 26
44 lines (36 loc) · 1.48 KB
/
docker_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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