Skip to content

Commit

Permalink
FIX: Login
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Apr 2, 2024
1 parent 423096c commit b4eed9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/Docker_Release_Tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,21 @@ on:

jobs:
version:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build docker image
run: docker-compose build --build-arg mne_python_v=${{ github.event.inputs.mne_python }} --build-arg mne_nirs_v=${{ github.event.inputs.mne_nirs }} --build-arg nilearn_v=${{ github.event.inputs.nilearn }} base

- name: List docker images
run: docker images

- run: docker images
- name: Rename base image tag for release
run: docker tag mne-tools/mne-nirs ghcr.io/mne-tools/mne-nirs:${{ github.event.inputs.mne_nirs }}

- name: Push image to github
run: docker push ghcr.io/mne-tools/mne-nirs:${{ github.event.inputs.mne_nirs }}

- name: System info
run: docker run ghcr.io/mne-tools/mne-nirs:${{ github.event.inputs.mne_nirs }} python -c "import mne_nirs; print(mne_nirs.__version__)"
17 changes: 6 additions & 11 deletions .github/workflows/Docker_Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,21 @@ concurrency:

jobs:
latest:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
defaults:
run:
shell: bash -el {0}
steps:

- uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build docker image
run: docker-compose build worker

- run: docker-compose build worker
- name: System info
run: docker run mne-tools/mne-nirs python -c "import mne; mne.sys_info()"

- name: MNE-NIRS info
run: docker run mne-tools/mne-nirs python -c "import mne_nirs; print(mne_nirs.__version__)"

- name: Run visualisation test
run: docker run -v `pwd`:/opt/app/examples mne-tools/mne-nirs ipython /opt/app/examples/.github/workflows/docker_tests.py

0 comments on commit b4eed9e

Please sign in to comment.