Skip to content

Commit

Permalink
Merge branch 'develop' into compatibility-v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminRodenberg committed Sep 28, 2023
2 parents ef63119 + 283bba9 commit 90d533a
Show file tree
Hide file tree
Showing 7 changed files with 1,003 additions and 397 deletions.
39 changes: 33 additions & 6 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: Update docker image

on:
workflow_dispatch: # Trigger by hand from the UI
workflow_dispatch: # Trigger by hand from the UI
inputs:
branch:
type: choice
description: branch to build the container from
options:
- develop
- master
push:
branches:
- develop
- master

jobs:
build-and-release-docker-image:
Expand All @@ -13,10 +21,28 @@ jobs:
env:
docker_username: precice
steps:
- name: Get branch name
if: github.event_name != 'pull_request'
- name: Set branch name for manual triggering
if: github.event_name == 'workflow_dispatch'
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
run: |
echo "ADAPTER_REF=${{ inputs.branch }}" >> $GITHUB_ENV
- name: Set branch name for on pull triggering
if: github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch'
shell: bash
run: |
echo "ADAPTER_REF=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Set PYTHON_BINDINGS_REF and the TAG depending on branch
shell: bash
run: |
if [[ '${{ env.ADAPTER_REF }}' == 'master' ]]; then
echo "PYTHON_BINDINGS_REF=latest" >> "$GITHUB_ENV"
echo "TAG=latest" >> "$GITHUB_ENV"
echo "Building TAG: latest"
else
echo "PYTHON_BINDINGS_REF=${{ env.ADAPTER_REF }}" >> "$GITHUB_ENV"
echo "TAG=${{ env.ADAPTER_REF }}" >> "$GITHUB_ENV"
echo "Building TAG: ${{ env.ADAPTER_REF }}"
fi
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
Expand All @@ -31,6 +57,7 @@ jobs:
with:
push: true
file: "./tools/releasing/packaging/docker/Dockerfile"
tags: ${{ env.docker_username }}/fenics-adapter:${{ env.branch }},${{ env.docker_username }}/fenics-adapter:latest
tags: ${{ env.docker_username }}/fenics-adapter:${{ env.TAG }}
build-args: |
branch=${{ env.branch }}
FENICS_ADAPTER_REF=${{ env.ADAPTER_REF }}
PYTHON_BINDINGS_REF=${{ env.PYTHON_BINDINGS_REF }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ To create and install the `fenicsprecice` python package the following instructi

## Development history

The initial version of this adapter was developed by [Benjamin Rodenberg](https://www.cs.cit.tum.de/sccs/personen/benjamin-rodenberg/) during his research stay at Lund University in the group for [Numerical Analysis](http://www.maths.lu.se/english/research/research-divisions/numerical-analysis/) in close collaboration with [Peter Meisrimel](https://portal.research.lu.se/en/persons/peter-meisrimel).
The initial version of this adapter was developed by [Benjamin Rodenberg](https://www.cs.cit.tum.de/sccs/personen/benjamin-rodenberg/) during his research stay at Lund University in the group for [Numerical Analysis](http://www.maths.lu.se/english/research/research-divisions/numerical-analysis/) in close collaboration with Peter Meisrimel.

[Richard Hertrich](https://github.com/richahert) contributed the possibility to perform FSI simulations using the adapter in his [Bachelor thesis](https://mediatum.ub.tum.de/node?id=1520579).

Expand Down
5 changes: 2 additions & 3 deletions fenicsprecice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
"The FEniCS adapter might not work as expected.\n\n")

from .fenicsprecice import Adapter
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from . import _version
__version__ = _version.get_versions()['version']
Loading

0 comments on commit 90d533a

Please sign in to comment.