diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 625878c..00a09a3 100755 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -72,6 +72,8 @@ jobs: context: . file: Dockerfile.buildbase platforms: linux/amd64, linux/arm64 - build-args: image_tag=${{ env.IMAGE_TAG }} + build-args: | + image_tag=${{ env.IMAGE_TAG }} + poetry_version=${{ vars.ARCALOT_POETRY_VERSION }} push: ${{ github.event_name == 'release' || github.ref == 'refs/heads/main' }} tags: quay.io/${{ secrets.QUAY_NAMESPACE }}/arcaflow-plugin-baseimage-python-buildbase:${{ env.IMAGE_TAG }} diff --git a/Dockerfile.buildbase b/Dockerfile.buildbase index 28f7b36..b1d9f99 100755 --- a/Dockerfile.buildbase +++ b/Dockerfile.buildbase @@ -1,13 +1,15 @@ ARG image_tag FROM quay.io/arcalot/arcaflow-plugin-baseimage-python-osbase:$image_tag +ARG poetry_version RUN dnf -y install gcc-c++ python3.12-devel openssl-devel \ && dnf clean all COPY constraints.txt constraints.txt # Setup poetry -RUN python3 -m pip install --constraint constraints.txt poetry==1.8.3 \ +RUN python3 -m pip install --constraint constraints.txt \ + poetry==${poetry_version} \ && python3 -m poetry config virtualenvs.create false # Setup coverage