Skip to content

Commit

Permalink
update pythesint version in Docker image & CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Oct 8, 2024
1 parent 80423f3 commit ed173db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
BASE_IMAGE: "${{ vars.DOCKER_ORG }}/geospaas:2.5.2-python${{ matrix.python_version }}"
IMAGE_NAME: "${{ vars.DOCKER_ORG }}/geospaas_harvesting"
METANORM_VERSION: '4.2.2'
PYTHESINT_VERSION: 1.7.0.dev0
GEOSPAAS_DB_HOST: 'db'
GEOSPAAS_DB_USER: 'test'
GEOSPAAS_DB_PASSWORD: "${{ secrets.GEOSPAAS_DB_PASSWORD }}"
Expand Down Expand Up @@ -56,6 +57,7 @@ jobs:
build-args: |
BASE_IMAGE=${{ env.BASE_IMAGE }}
METANORM_VERSION=${{ env.METANORM_VERSION }}
PYTHESINT_VERSION=${{ env.PYTHESINT_VERSION }}
push: false
load: true
tags: 'harvesting_tests'
Expand Down Expand Up @@ -107,6 +109,7 @@ jobs:
build-args: |
BASE_IMAGE=${{ env.BASE_IMAGE }}
METANORM_VERSION=${{ env.METANORM_VERSION }}
PYTHESINT_VERSION=${{ env.PYTHESINT_VERSION }}
push: ${{ github.event_name == 'release' }}
tags: |
${{ env.IMAGE_NAME }}:${{ github.ref_name }}-python${{ matrix.python_version }}
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BASE_IMAGE=nansencenter/geospaas:latest

FROM ${BASE_IMAGE} as base
FROM ${BASE_IMAGE} AS base

ARG METANORM_VERSION
RUN pip install --upgrade --no-cache-dir \
Expand All @@ -11,6 +11,9 @@ RUN pip install --upgrade --no-cache-dir \
'requests_oauthlib==1.3.*' \
'tblib'

ARG PYTHESINT_VERSION=''
RUN bash -c "[ -n '$PYTHESINT_VERSION' ] && pip install --upgrade 'pythesint==$PYTHESINT_VERSION' || true"

FROM base

COPY . /tmp/setup
Expand Down

0 comments on commit ed173db

Please sign in to comment.