From 862dca006b1288c4783a94b50557a4897d7de088 Mon Sep 17 00:00:00 2001 From: syui Date: Sun, 14 Apr 2024 05:05:47 +0900 Subject: [PATCH] fix actions --- .gitea/workflows/release.yml | 2 ++ .github/workflows/release.yml | 2 -- README.md | 54 ++++++++++++++++++++++++++++++++--- 3 files changed, 52 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 95d3905..bd09c50 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -1,6 +1,8 @@ name: build and push image on: + schedule: + - cron: '0 12 * * *' push: branches: - main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5889f92..4227645 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,6 @@ on: push: branches: - main - schedule: - - cron: "0 0 * * *" permissions: contents: write diff --git a/README.md b/README.md index fcd73f1..d5521d2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## ai `os` +# ai `os` `aios` is a simple linux distribution based on `archlinux`. @@ -14,14 +14,22 @@ $ docker run -it git.syui.ai/ai/os ai ``` -### base +## link + +|host|command|url| +|---|---|---| +|docker|syui/aios|https://hub.docker.com/r/syui/aios| +|github|ghcr.io/syui/aios|https://github.com/users/syui/packages/container/package/aios| +|syui|git.syui.ai/ai/os|https://git.syui.ai/ai/-/packages/container/os| + +## base ```sh # https://gitlab.archlinux.org/archlinux $ git clone https://gitlab.archlinux.org/archlinux/archiso ``` -### docker +## docker ```sh # https://git.syui.ai/ai/-/packages/container/os @@ -34,7 +42,45 @@ $ docekr run -it syui/aios ai $ docker run -it ghcr.io/syui/aios ai ``` -### link +## token + +|env|body| +|---|---| +|${{ github.repository }}|syui/aios| +|${{ secrets.DOCKER_USERNAME }}|syui| +|${{ secrets.DOCKER_TOKEN }}|[token](https://matsuand.github.io/docs.docker.jp.onthefly/docker-hub/access-tokens/)| +|${{ secrets.APP_TOKEN }}|[token](https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens), pacakge| + +## podman + +```sh +$ podman pull aios +``` + +https://github.com/containers/shortnames + +> /etc/containers/registries.conf.d/ai.conf + +```sh +unqualified-search-registries = ['docker.io', 'git.syui.ai', 'ghcr.io'] + +[aliases] +"aios" = "git.syui.ai/ai/os" +``` + +```sh +$ podman pull aios +Resolved "aios" as an alias (/etc/containers/registries.conf.d/ai.conf) +Trying to pull git.syui.ai/ai/os:latest... +Getting image source signatures +Copying blob c7e55fecf0be [====================>-----------------] 917.4MiB / 1.7GiB +``` + +## cron + +stop + +## link - https://git.syui.ai/ai/os - https://github.com/syui/aios