Skip to content

Commit

Permalink
feat: update iamai and adapter versions and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Sep 24, 2024
1 parent 3d17553 commit 3e0fc94
Show file tree
Hide file tree
Showing 15 changed files with 89 additions and 55 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Publish Docker image

on:
release:
types: [published]

jobs:
push_prod_to_registries:
name: Push Docker image to multiple registries
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
IMAGE_NAME: retrofor/iamai-prod
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
ghcr.io/${{ github.repository }}
- name: Build and push Docker images
id: push
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile.prod
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iamai"
version = "0.0.4"
version = "0.1.4"
edition = "2021"
description = "Comprehensive AI Toolkit for Multimodal Learning and Cross-Platform Robotics."
license = "MIT"
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM python:3.10

LABEL maintainer="HsiangNianian <[email protected]>"
LABEL org.opencontainers.image.description "A simple iamai examples with python 3.10"

RUN apt-get update && \
apt-get install -y curl && \
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM python:3.10

LABEL maintainer="HsiangNianian <[email protected]>"
LABEL org.opencontainers.image.description="A simple iamai examples with python 3.10"

WORKDIR /app

ADD /examples /app/
Expand Down
9 changes: 3 additions & 6 deletions packages/iamai-adapter-apscheduler/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "iamai-adapter-apscheduler"
version = "0.0.4"
version = "0.1.4"
description = "apscheduler adapter for iamai."
authors = [{ name = "简律纯", email = "[email protected]" }]
license = { text = "MIT" }
Expand All @@ -18,7 +18,7 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"iamai>=0.0.3",
"iamai>=0.0.4",
"apscheduler>=3.10.4",
]

Expand All @@ -34,7 +34,4 @@ include = ["iamai/adapter/apscheduler"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
iamai = { workspace = true }
build-backend = "hatchling.build"
9 changes: 3 additions & 6 deletions packages/iamai-adapter-bililive/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "iamai-adapter-bililive"
version = "0.0.4"
version = "0.1.4"
description = "bililive adapter for iamai."
authors = [{ name = "简律纯", email = "[email protected]" }]
license = { text = "MIT" }
Expand All @@ -17,7 +17,7 @@ classifiers = [
"Topic :: Communications :: Chat",
]
requires-python = ">=3.9"
dependencies = ["iamai>=0.0.3"]
dependencies = ["iamai>=0.0.4"]

[project.urls]
Homepage = "https://iamai.is-a.dev/"
Expand All @@ -31,7 +31,4 @@ include = ["iamai/adapter/bililive"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
iamai = { workspace = true }
build-backend = "hatchling.build"
9 changes: 3 additions & 6 deletions packages/iamai-adapter-console/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "iamai-adapter-console"
version = "0.0.4"
version = "0.1.4"
description = "Console adapter for iamai."
authors = [{ name = "简律纯", email = "[email protected]" }]
license = { text = "MIT" }
Expand All @@ -17,7 +17,7 @@ classifiers = [
"Topic :: Communications :: Chat",
]
requires-python = ">=3.9"
dependencies = ["iamai>=0.0.3"]
dependencies = ["iamai>=0.0.4"]

[project.urls]
Homepage = "https://iamai.is-a.dev/"
Expand All @@ -31,7 +31,4 @@ include = ["iamai/adapter/console"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
iamai = { workspace = true }
build-backend = "hatchling.build"
11 changes: 3 additions & 8 deletions packages/iamai-adapter-cqhttp/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "iamai-adapter-cqhttp"
version = "0.0.4"
version = "0.1.4"
description = "CQHTTP adapter for iamai."
authors = [{ name = "简律纯", email = "[email protected]" }]
license = { text = "MIT" }
Expand All @@ -18,7 +18,7 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"iamai>=0.0.3",
"iamai>=0.0.4",
]

[project.urls]
Expand All @@ -31,14 +31,9 @@ Changelog = "https://iamai.is-a.dev/changelog.html"
exclude = ["iamai/__init__.py", "iamai/adapter/__init__.py"]
include = ["iamai/adapter/cqhttp"]


[tool.pdm]
[tool.pdm.dev-dependencies]
dev = []
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"


[tool.uv.sources]
iamai = { workspace = true }
build-backend = "hatchling.build"
9 changes: 3 additions & 6 deletions packages/iamai-adapter-dingtalk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "iamai-adapter-dingtalk"
version = "0.0.4"
version = "0.1.4"
description = "Dingtalk adapter for iamai."
authors = [{ name = "简律纯", email = "[email protected]" }]
license = { text = "MIT" }
Expand All @@ -17,7 +17,7 @@ classifiers = [
"Topic :: Communications :: Chat",
]
requires-python = ">=3.9"
dependencies = ["iamai>=0.0.3"]
dependencies = ["iamai>=0.0.4"]

[project.urls]
Homepage = "https://iamai.is-a.dev/"
Expand All @@ -31,7 +31,4 @@ include = ["iamai/adapter/dingtalk"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
iamai = { workspace = true }
build-backend = "hatchling.build"
9 changes: 3 additions & 6 deletions packages/iamai-adapter-gensokyo/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "iamai-adapter-gensokyo"
version = "0.0.4"
version = "0.1.4"
description = "Gensokyo adapter for iamai."
authors = [{ name = "简律纯", email = "[email protected]" }]
license = { text = "MIT" }
Expand All @@ -17,7 +17,7 @@ classifiers = [
"Topic :: Communications :: Chat",
]
requires-python = ">=3.9"
dependencies = ["iamai>=0.0.3"]
dependencies = ["iamai>=0.0.4"]

[project.urls]
Homepage = "https://iamai.is-a.dev/"
Expand All @@ -31,7 +31,4 @@ include = ["iamai/adapter/gensokyo"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
iamai = { workspace = true }
build-backend = "hatchling.build"
9 changes: 3 additions & 6 deletions packages/iamai-adapter-kook/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "iamai-adapter-kook"
version = "0.0.4"
version = "0.1.4"
description = "kook adapter for iamai."
authors = [{ name = "简律纯", email = "[email protected]" }]
license = { text = "MIT" }
Expand All @@ -17,7 +17,7 @@ classifiers = [
"Topic :: Communications :: Chat",
]
requires-python = ">=3.9"
dependencies = ["iamai>=0.0.3"]
dependencies = ["iamai>=0.0.4"]

[project.urls]
Homepage = "https://iamai.is-a.dev/"
Expand All @@ -31,7 +31,4 @@ include = ["iamai/adapter/kook"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
iamai = { workspace = true }
build-backend = "hatchling.build"
9 changes: 3 additions & 6 deletions packages/iamai-adapter-red/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "iamai-adapter-red"
version = "0.0.4"
version = "0.1.4"
description = "Red adapter for iamai."
authors = [{ name = "简律纯", email = "[email protected]" }]
license = { text = "MIT" }
Expand All @@ -17,7 +17,7 @@ classifiers = [
"Topic :: Communications :: Chat",
]
requires-python = ">=3.9"
dependencies = ["iamai>=0.0.3"]
dependencies = ["iamai>=0.0.4"]

[project.urls]
Homepage = "https://iamai.is-a.dev/"
Expand All @@ -31,7 +31,4 @@ include = ["iamai/adapter/red"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
iamai = { workspace = true }
build-backend = "hatchling.build"
2 changes: 1 addition & 1 deletion pdm.lock

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

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"tomli>=2.0.0",
"pydantic>=2.0.3,<3.0.0",
"aiohttp>=3.9.1",
"loguru>=0.7.0,<0.8.0",
Expand Down

0 comments on commit 3e0fc94

Please sign in to comment.