Skip to content

Commit

Permalink
Use short version in openmpi version set (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Jun 18, 2024
1 parent 11711a7 commit 0a8083b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ jobs:
env: ${{ fromJSON(steps.build_vars.outputs.vars) }}
with:
# e.g. ghcr.io/cnts4sci/bm
# type=raw,value=python-${{ env.PYTHON_VERSION }},enable=${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
images: ${{ inputs.registry }}/${{ github.repository_owner }}/${{ matrix.target }}
tags: |
type=ref,event=pr
type=edge,enable={{is_default_branch}}
type=match,pattern=v(\d{4}\.\d{4}(-.+)?),group=1
type=match,pattern=(\d{4}\.\d{4}(-.+)?),group=1
type=raw,value=v${{ env.OPENMPI_VERSION }},enable=${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && endsWith(matrix.target, 'openmpi') }}
type=raw,value=v${{ env.LAPACK_VERSION }},enable=${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && endsWith(matrix.target, 'lapack') }}
- name: Determine source image
id: images
Expand Down
3 changes: 1 addition & 2 deletions bm-openmpi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ FROM base-image AS openmpi-builder
WORKDIR /openmpi-build
ARG OPENMPI_VERSION

# TODO: v4.1 -< OPENMPI_MAJOR_MINOR_VERSION
RUN wget -c -O openmpi.tar.gz https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-${OPENMPI_VERSION}.tar.gz && \
RUN wget -c -O openmpi.tar.gz https://download.open-mpi.org/release/open-mpi/v${OPENMPI_VERSION%.*}/openmpi-${OPENMPI_VERSION}.tar.gz && \
mkdir -p openmpi && \
tar xf openmpi.tar.gz -C openmpi --strip-components=1 && \
cd openmpi && \
Expand Down

0 comments on commit 0a8083b

Please sign in to comment.