Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Triggers:
# - Push to main / master -> publish `:edge` (and the commit SHA)
# - Push of a tag like v0.1.11 -> publish `:0.1.11`, `:0.1`, `:latest`
# - Push of a tag like v0.1.16 -> publish `:0.1.16`, `:0.1`, `:latest`
# - Manual workflow_dispatch -> custom tag via input
#
# No external secrets needed — uses the built-in GITHUB_TOKEN for auth.
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,16 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
# Build inside manylinux2014 so the shipped Rust binary targets glibc 2.17
# instead of the newer glibc from the GitHub-hosted Ubuntu runner.
- uses: PyO3/maturin-action@v1
with:
python-version: "3.12"
- uses: dtolnay/rust-toolchain@stable
- run: python -m pip install "maturin>=1.0,<2.0"
- run: maturin build --release --out dist --manifest-path dlslime-ctrl/Cargo.toml
manylinux: "2014"
command: build
args: >-
--release
--out dist
--manifest-path dlslime-ctrl/Cargo.toml
- uses: actions/upload-artifact@v4
with:
name: dist-dlslime-ctrl
Expand Down
2 changes: 1 addition & 1 deletion dlslime-ctrl/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dlslime-ctrl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dlslime-ctrl"
version = "0.1.11"
version = "0.1.16"
edition = "2021"
description = "DLSlime control plane server"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion dlslime-ctrl/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "dlslime-ctrl"
version = "0.1.11"
version = "0.1.16"
description = "DLSlime control-plane server (Redis-backed service registry and peer-agent coordinator)"
requires-python = ">=3.10"
# The Python client lives in the `dlslime` package as `dlslime.ctrl.NanoCtrlClient`.
Expand Down
2 changes: 1 addition & 1 deletion dlslime/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ description = "DLSlime Transfer Engine"
name = "dlslime"
readme = "README.md"
requires-python = ">=3.8"
version = "0.1.11"
version = "0.1.16"
dependencies = [
"pydantic>=2.0",
"pyzmq>=25.0",
Expand Down
2 changes: 1 addition & 1 deletion docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ DLSLIME_CTRL_RUST_LOG=info

# By default both compose files build the image locally from ctrl.Dockerfile.
# To pull a pre-built image from GitHub Container Registry (GHCR) instead:
# DLSLIME_CTRL_IMAGE=ghcr.io/deeplink-org/dlslime-ctrl:0.1.11
# DLSLIME_CTRL_IMAGE=ghcr.io/deeplink-org/dlslime-ctrl:0.1.16
# DLSLIME_CTRL_PULL_POLICY=missing
12 changes: 6 additions & 6 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Why GHCR rather than Docker Hub:

```bash
cat >> docker/.env <<'EOF'
DLSLIME_CTRL_IMAGE=ghcr.io/deeplink-org/dlslime-ctrl:0.1.11
DLSLIME_CTRL_IMAGE=ghcr.io/deeplink-org/dlslime-ctrl:0.1.16
DLSLIME_CTRL_PULL_POLICY=missing
EOF

Expand All @@ -127,7 +127,7 @@ The workflow [`.github/workflows/docker-publish.yml`](../.github/workflows/docke
| Trigger | Tags published |
| -------------------------- | ---------------------------------------- |
| Push to `main` / `master` | `edge`, `sha-<short>` |
| Push tag `v0.1.11` | `0.1.11`, `0.1`, `latest`, `sha-<short>` |
| Push tag `v0.1.16` | `0.1.16`, `0.1`, `latest`, `sha-<short>` |
| Manual `workflow_dispatch` | optional extra tag from the input |

One-time setup after the **first** successful workflow run, in the GitHub UI:
Expand All @@ -141,12 +141,12 @@ Releasing a new version:
```bash
# bump versions in:
# Cargo.toml, dlslime-ctrl/pyproject.toml, dlslime/pyproject.toml, pyproject.toml
git commit -am "release: v0.1.11"
git tag v0.1.11
git commit -am "release: v0.1.16"
git tag v0.1.16
git push origin main --tags
```

The workflow will build `linux/amd64` + `linux/arm64` and push `0.1.11`, `0.1`, `latest`.
The workflow will build `linux/amd64` + `linux/arm64` and push `0.1.16`, `0.1`, `latest`.

### Manual push (without CI)

Expand All @@ -162,7 +162,7 @@ echo "$GHCR_PAT" | docker login ghcr.io -u <your-github-username> --password-std
# 3. Build multi-arch and push.
docker buildx create --use --name dlslime-builder 2>/dev/null || docker buildx use dlslime-builder

VERSION=0.1.11
VERSION=0.1.16
docker buildx build \
--platform linux/amd64,linux/arm64 \
-f docker/ctrl.Dockerfile \
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ services:
# listening on 127.0.0.1 on the host (e.g. http_proxy=127.0.0.1:7890).
network: host
# Defaults to a locally-built tag. Override to a published GHCR image
# (e.g. `ghcr.io/deeplink-org/dlslime-ctrl:0.1.11`) to skip the local build:
# echo "DLSLIME_CTRL_IMAGE=ghcr.io/deeplink-org/dlslime-ctrl:0.1.11" >> docker/.env
# (e.g. `ghcr.io/deeplink-org/dlslime-ctrl:0.1.16`) to skip the local build:
# echo "DLSLIME_CTRL_IMAGE=ghcr.io/deeplink-org/dlslime-ctrl:0.1.16" >> docker/.env
# echo "DLSLIME_CTRL_PULL_POLICY=missing" >> docker/.env
image: ${DLSLIME_CTRL_IMAGE:-dlslime-ctrl:local}
pull_policy: ${DLSLIME_CTRL_PULL_POLICY:-build}
Expand Down
2 changes: 1 addition & 1 deletion docs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dlslime-docs"
version = "0.1.11"
version = "0.1.16"
description = "Documentation site tooling for DLSlime"
requires-python = ">=3.10"
dependencies = [
Expand Down
Loading