Skip to content

Commit

Permalink
ci: add github docker image action
Browse files Browse the repository at this point in the history
  • Loading branch information
xeniorn committed Apr 26, 2024
1 parent 21bc7a0 commit 296b3e1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docker Image CI

on:
push:
branches: [ "devel" ]
workflow_dispatch:
inputs:
ompi_version:
description: 'ompi version to use for build'
required: false
default: "4.1.6"
type: string

jobs:

build_docker_image:

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
- name: Set version
if: "${{ inputs.ompi_version != '' }}"
run: echo "ompi_version=${{ inputs.ompi_version }}" >> $GITHUB_ENV
- name: Build the Docker image
run: docker build -t relion:${version}_slurm --file ./containerization/relion.dockerfile --build-arg OMPI_VERSION=${ompi_version} ./
env:
ompi_version: "4.1.6"

0 comments on commit 296b3e1

Please sign in to comment.