-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update iamai and adapter versions and dependencies
- Loading branch information
1 parent
3d17553
commit 3e0fc94
Showing
15 changed files
with
89 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
|
@@ -18,7 +18,7 @@ classifiers = [ | |
] | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"iamai>=0.0.3", | ||
"iamai>=0.0.4", | ||
"apscheduler>=3.10.4", | ||
] | ||
|
||
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
|
@@ -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/" | ||
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
|
@@ -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/" | ||
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
|
@@ -18,7 +18,7 @@ classifiers = [ | |
] | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"iamai>=0.0.3", | ||
"iamai>=0.0.4", | ||
] | ||
|
||
[project.urls] | ||
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
|
@@ -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/" | ||
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
|
@@ -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/" | ||
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
|
@@ -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/" | ||
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
|
@@ -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/" | ||
|
@@ -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" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters