Skip to content

build docker image in self hosted #2

build docker image in self hosted

build docker image in self hosted #2

Workflow file for this run

name: Build Docker Image
on:
workflow_dispatch:
inputs:
use_local_freesurfer:
type: boolean
description: 'Use local FreeSurfer binaries instead of downloading'
required: false
default: false
push_to_registry:
type: boolean
description: 'Push the built image to Docker registry'
required: false
default: false
push:
branches: [ main, master ]
tags: [ 'v*' ]
pull_request:
branches: [ main, master ]
jobs:
build-docker:
runs-on: self-hosted
name: Build Docker Image
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Docker image
run: |
make dockerbuild USE_LOCAL_FREESURFER=${{ github.event.inputs.use_local_freesurfer || 'False' }}
- name: Push Docker image
if: github.event.inputs.push_to_registry == 'true' || startsWith(github.ref, 'refs/tags/')
run: |
make dockerpush