Skip to content

[FIX] Fix submodule import test #34

[FIX] Fix submodule import test

[FIX] Fix submodule import test #34

name: publish-docker-image
on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- '*'
jobs:
push_to_registry:
if: github.repository_owner == 'netneurolab'
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v1.14.1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Log in to the Container registry
uses: docker/login-action@v1.14.1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3.8.0
with:
images: |
${{ secrets.DOCKER_HUB_USERNAME }}/neuromaps
ghcr.io/netneurolab/neuromaps
- name: Build and push Docker image
uses: docker/build-push-action@v2.10.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}