Skip to content

Commit 812009a

Browse files
Release v0.16.4: CI: updated readimc, new cellpose container with cellposeSAM, updated docker build with ubuntu-latest and xpra containers
1 parent 6516ced commit 812009a

File tree

3 files changed

+87
-61
lines changed

3 files changed

+87
-61
lines changed

.github/workflows/build.yml

Lines changed: 84 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -45,31 +45,32 @@ jobs:
4545
files: coverage.xml
4646

4747
pypi:
48-
needs: test
49-
if: startsWith(github.ref, 'refs/tags/')
50-
runs-on: ubuntu-latest
51-
permissions:
52-
contents: read
53-
id-token: write
54-
steps:
55-
- name: Checkout repository
56-
uses: actions/checkout@v4
57-
with:
58-
fetch-depth: 0
59-
60-
- name: Setup Python
61-
uses: actions/setup-python@v5
62-
with:
63-
python-version: "3.8"
64-
65-
- name: Build package
66-
run: |
67-
python -m pip install --upgrade pip
68-
python -m pip install build
69-
python -m build .
70-
71-
- name: Publish package
72-
uses: pypa/gh-action-pypi-publish@release/v1
48+
needs: test
49+
if: startsWith(github.ref, 'refs/tags')
50+
runs-on: ubuntu-latest-m
51+
steps:
52+
53+
- name: Checkout repository
54+
uses: actions/checkout@v3
55+
with:
56+
fetch-depth: 0
57+
58+
- name: Setup Python
59+
uses: actions/setup-python@v4
60+
with:
61+
python-version: 3.8
62+
63+
- name: Build package
64+
run: |
65+
python -m pip install --upgrade pip
66+
python -m pip install build
67+
python -m build .
68+
69+
- name: Publish package
70+
uses: pypa/gh-action-pypi-publish@release/v1
71+
with:
72+
user: __token__
73+
password: ${{ secrets.PYPI_API_TOKEN }}
7374

7475
ghcr:
7576
needs: test
@@ -103,6 +104,8 @@ jobs:
103104
registry: ghcr.io
104105
username: ${{ github.actor }}
105106
password: ${{ secrets.GITHUB_TOKEN }}
107+
108+
# steinbock
106109

107110
- name: Create steinbock container metadata
108111
id: steinbock_container_meta
@@ -120,10 +123,64 @@ jobs:
120123
context: .
121124
push: true
122125
target: steinbock
123-
platforms: linux/amd64,linux/arm64
124126
build-args: |
125127
TENSORFLOW_TARGET=tensorflow
126128
STEINBOCK_TARGET=steinbock
127129
STEINBOCK_VERSION=${{ steps.steinbock_meta.outputs.version }}
128130
tags: ${{ steps.steinbock_container_meta.outputs.tags }}
129-
labels: ${{ steps.steinbock_container_meta.outputs.labels }}
131+
labels: ${{ steps.steinbock_container_meta.outputs.labels }}
132+
133+
134+
# steinbock-gpu
135+
136+
- name: Create steinbock-gpu container metadata
137+
uses: docker/metadata-action@v4
138+
id: steinbock_gpu_container_meta
139+
with:
140+
images: ghcr.io/${{ github.repository }}
141+
flavor: |
142+
suffix=-gpu,onlatest=true
143+
tags: |
144+
type=semver,pattern={{major}}
145+
type=semver,pattern={{major}}.{{minor}}
146+
type=semver,pattern={{major}}.{{minor}}.{{patch}}
147+
148+
- name: Build and publish steinbock-gpu container
149+
uses: docker/build-push-action@v3
150+
with:
151+
context: .
152+
push: true
153+
target: steinbock
154+
build-args: |
155+
TENSORFLOW_TARGET=tensorflow-gpu
156+
STEINBOCK_TARGET=steinbock
157+
STEINBOCK_VERSION=${{ steps.steinbock_meta.outputs.version }}
158+
tags: ${{ steps.steinbock_gpu_container_meta.outputs.tags }}
159+
labels: ${{ steps.steinbock_gpu_container_meta.outputs.labels }}
160+
161+
162+
# steinbock cellpose
163+
164+
- name: Create steinbock-cellpose container metadata
165+
uses: docker/metadata-action@v4
166+
id: steinbock_cellpose_container_meta
167+
with:
168+
images: ghcr.io/${{ github.repository }}
169+
flavor: |
170+
suffix=-cellpose,onlatest=true
171+
tags: |
172+
type=semver,pattern={{major}}
173+
type=semver,pattern={{major}}.{{minor}}
174+
type=semver,pattern={{major}}.{{minor}}.{{patch}}
175+
176+
- name: Build and publish steinbock-cellpose container
177+
uses: docker/build-push-action@v3
178+
with:
179+
context: .
180+
push: true
181+
target: steinbock-cellpose
182+
build-args: |
183+
STEINBOCK_TARGET=steinbock-cellpose
184+
STEINBOCK_VERSION=${{ steps.steinbock_meta.outputs.version }}
185+
tags: ${{ steps.steinbock_cellpose_container_meta.outputs.tags }}
186+
labels: ${{ steps.steinbock_cellpose_container_meta.outputs.labels }}

CHANGELOG.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.16.8] - 2026-03-25
98

10-
### Changed
11-
12-
- Added cellpose into standard docker build
13-
14-
## [0.16.7] - 2026-03-25
15-
16-
### Changed
17-
18-
- Included arm64 build and refined build.yml
19-
20-
## [0.16.6] - 2026-03-25
21-
22-
### Changed
23-
24-
- Updated build.yml to run ghcr docker build on ubuntu-latest
25-
26-
## [0.16.5] - 2026-03-25
27-
28-
### Changed
29-
30-
- Updated build.yml to run ghcr docker build on ubuntu-latest-m
31-
- removed cellpose-, gpu-, xpra docker build
32-
33-
## [0.16.4] - 2026-02-26
9+
## [0.16.4] - 2026-03-26
3410

3511
### Changed
3612

3713
- Updated readimc to 0.9.2
3814
- Changed Cellpose container and description to v4.0.8, using CellposeSAM
15+
- Updated build.yml to run ghcr docker build on ubuntu-latest
16+
- removed gpu-, xpra docker build
3917

4018
## [0.16.3] - 2024-05-29
4119

Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,6 @@ RUN --mount=source=.git,target=/app/steinbock/.git SETUPTOOLS_SCM_PRETEND_VERSIO
166166
RUN mkdir -p /opt/keras/models && \
167167
curl -SsL https://deepcell-data.s3-us-west-1.amazonaws.com/saved-models/MultiplexSegmentation-9.tar.gz | tar -C /opt/keras/models -xzf -
168168

169-
# Install Cellpose into the main steinbock image so the default image includes Cellpose
170-
RUN python -m pip install "cellpose==${CELLPOSE_VERSION}"
171-
172-
# Download CPSAM model for Cellpose into steinbock user's home and set ownership
173-
RUN mkdir -p /home/steinbock/.cellpose/models && \
174-
curl -L -sS -o /home/steinbock/.cellpose/models/cpsam \
175-
https://huggingface.co/mouseland/cellpose-sam/resolve/main/cpsam && \
176-
chown -R steinbock:steinbock /home/steinbock/.cellpose
177-
178169
# configure container
179170

180171
WORKDIR /data

0 commit comments

Comments
 (0)