Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,28 @@ env:
MLFLOW_UI_IMAGE_NAME: cogstacksystems/cogstack-mlflow-ui

jobs:
ensure-branch:
runs-on: ubuntu-latest
outputs:
is-valid: ${{ steps.ensure-branch.outputs.is-valid }}
steps:
- name: Ensures release is from the production branch only
id: ensure-branch
run: |
TARGET_BRANCH="${{ github.event.release.target_commitish }}"
if [ "$TARGET_BRANCH" != "production" ]; then
echo "Only releases from the 'production' branch are allowed but found: $TARGET_BRANCH"
echo "is-valid=false" >> "$GITHUB_OUTPUT"
exit 1
else
echo "Target release branch is: $TARGET_BRANCH"
echo "is-valid=true" >> "$GITHUB_OUTPUT"
fi

qc:
runs-on: ubuntu-latest
needs: ensure-branch
if: needs.ensure-branch.outputs.is-valid == 'true'
steps:
- uses: actions/checkout@v4
- name: Install uv
Expand All @@ -31,7 +51,8 @@ jobs:

release:
runs-on: ubuntu-latest
needs: qc
needs: [ensure-branch, qc]
if: needs.ensure-branch.outputs.is-valid == 'true'
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -90,7 +111,8 @@ jobs:

release-extra:
runs-on: ubuntu-latest
needs: qc
needs: [ensure-branch, qc]
if: needs.ensure-branch.outputs.is-valid == 'true'
permissions:
contents: read
packages: write
Expand Down
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.2.0"
2 changes: 1 addition & 1 deletion docker-compose-mlflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ services:
condition: "service_healthy"

mlflow-ui:
image: cogstacksystems/cogstack-mlflow-ui:0.1.0
image: cogstacksystems/cogstack-mlflow-ui:0.1.1
restart: always
networks:
- cogstack-model-serve_cms
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: cms
services:

medcat-snomed:
image: cogstacksystems/cogstack-modelserve:0.1.0
image: cogstacksystems/cogstack-modelserve:0.1.1
labels:
- org.cogstack.model-serve=medcat_snomed
- org.cogstack.model-name=SNOMED MedCAT model
Expand Down Expand Up @@ -52,7 +52,7 @@ services:
start_period: 60s

medcat-icd10:
image: cogstacksystems/cogstack-modelserve:0.1.0
image: cogstacksystems/cogstack-modelserve:0.1.1
labels:
- org.cogstack.model-serve=medcat_icd10
- org.cogstack.model-name=ICD-10 MedCAT model
Expand Down Expand Up @@ -99,7 +99,7 @@ services:
start_period: 60s

medcat-opcs4:
image: cogstacksystems/cogstack-modelserve:0.1.0
image: cogstacksystems/cogstack-modelserve:0.1.1
labels:
- org.cogstack.model-serve=medcat_opcs4
- org.cogstack.model-name=OPCS-4 MedCAT model
Expand Down Expand Up @@ -146,7 +146,7 @@ services:
start_period: 60s

medcat-deid:
image: cogstacksystems/cogstack-modelserve:0.1.0
image: cogstacksystems/cogstack-modelserve:0.1.1
labels:
- org.cogstack.model-serve=medcat_deid
- org.cogstack.model-name=De-Identification MedCAT model
Expand Down Expand Up @@ -193,7 +193,7 @@ services:
start_period: 60s

medcat-umls:
image: cogstacksystems/cogstack-modelserve:0.1.0
image: cogstacksystems/cogstack-modelserve:0.1.1
labels:
- org.cogstack.model-serve=medcat_umls
- org.cogstack.model-name=UMLS MedCAT model
Expand Down Expand Up @@ -240,7 +240,7 @@ services:
start_period: 60s

huggingface-ner:
image: cogstacksystems/cogstack-modelserve:0.1.0
image: cogstacksystems/cogstack-modelserve:0.1.1
labels:
- org.cogstack.model-serve=huggingface_ner
- org.cogstack.model-name=HuggingFace NER model
Expand Down