Skip to content

Commit

Permalink
fixing dockerhub ci job
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Parfenov <[email protected]>
  • Loading branch information
Andrey1994 committed Sep 13, 2023
1 parent b7aedb2 commit f2cb7ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Clone Repository
uses: actions/checkout@v2
- name: Build Docker Container
- name: Build Docker Container with Tag
if: github.event_name == 'workflow_dispatch' && github.event.inputs.version != ''
run: |
cd Docker
sudo docker build --tag brainflow/brainflow:${VERSION} --build-arg checkout_id=${VERSION} .
env:
VERSION: ${{ github.event.inputs.version }}
- name: Build Docker Container without Tag
if: github.event_name == 'workflow_dispatch' && github.event.inputs.version == ''
run: |
cd Docker
sudo docker build --tag brainflow/brainflow:0.0.1 .
- name: Check Images
run: sudo -H docker images
- name: DockerHub Login
Expand Down
4 changes: 2 additions & 2 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ ENV PATH=$PATH:/root/local/bin/julia/julia-1.5.3/bin
RUN python3 -m pip install scipy pandas matplotlib mne jupyterlab notebook opencv-python pyriemann

WORKDIR /root
ARG checkout_id
ARG checkout_id="none"
# Compile
RUN git clone "https://github.com/brainflow-dev/brainflow.git"
WORKDIR /root/brainflow
RUN if [ ! -z "${checkout_id}" ]; then git checkout "${checkout_id}"; fi
RUN if [ "${checkout_id}" != "none" ]; then git checkout "${checkout_id}"; fi
RUN python3 ./tools/build.py --use-openmp --bluetooth --ble
ENV LD_LIBRARY_PATH=/root/brainflow/installed_linux/lib/

Expand Down

0 comments on commit f2cb7ee

Please sign in to comment.