Compare commits

...

2 Commits

Author SHA1 Message Date
d101b7eda6 add bc
All checks were successful
build and push image / Release (push) Successful in 2m44s
2024-08-04 08:12:08 +09:00
862dca006b fix actions 2024-08-04 08:12:07 +09:00
6 changed files with 69 additions and 13 deletions

View File

@ -1,6 +1,8 @@
name: build and push image name: build and push image
on: on:
schedule:
- cron: '0 12 * * *'
push: push:
branches: branches:
- main - main

View File

@ -4,8 +4,6 @@ on:
push: push:
branches: branches:
- main - main
schedule:
- cron: "0 0 * * *"
permissions: permissions:
contents: write contents: write
@ -28,7 +26,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Initialize - name: Initialize
run: | run: |
pacman -Syuu --noconfirm base-devel archiso docker git nodejs pacman -Syuu --noconfirm base-devel archiso docker git nodejs bc
git clone https://gitlab.archlinux.org/archlinux/archiso git clone https://gitlab.archlinux.org/archlinux/archiso
cp -rf ./cfg/profiledef.sh /usr/share/archiso/configs/releng/ cp -rf ./cfg/profiledef.sh /usr/share/archiso/configs/releng/
cp -rf ./cfg/profiledef.sh ./archiso/configs/releng/profiledef.sh cp -rf ./cfg/profiledef.sh ./archiso/configs/releng/profiledef.sh

View File

@ -1,4 +1,4 @@
## <img src="./icon/ai.png" width="30"> ai `os` # <img src="./icon/ai.png" width="30"> ai `os`
`aios` is a simple linux distribution based on `archlinux`. `aios` is a simple linux distribution based on `archlinux`.
@ -14,14 +14,22 @@
$ docker run -it git.syui.ai/ai/os ai $ 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 ```sh
# https://gitlab.archlinux.org/archlinux # https://gitlab.archlinux.org/archlinux
$ git clone https://gitlab.archlinux.org/archlinux/archiso $ git clone https://gitlab.archlinux.org/archlinux/archiso
``` ```
### docker ## docker
```sh ```sh
# https://git.syui.ai/ai/-/packages/container/os # https://git.syui.ai/ai/-/packages/container/os
@ -34,7 +42,57 @@ $ docekr run -it syui/aios ai
$ docker run -it ghcr.io/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
```sh
schedule:
- cron: "0 0 * * *"
```
## update action
```sh
$ vim build.zszh
$ ./scpt/gh-actions.zsh
```
## link
- https://git.syui.ai/ai/os - https://git.syui.ai/ai/os
- https://github.com/syui/aios - https://github.com/syui/aios

View File

@ -1,5 +1,5 @@
#!/bin/zsh #!/bin/zsh
pacman -Syuu --noconfirm base-devel archiso docker git nodejs pacman -Syuu --noconfirm base-devel archiso docker git nodejs bc
git clone https://gitlab.archlinux.org/archlinux/archiso git clone https://gitlab.archlinux.org/archlinux/archiso
cp -rf ./cfg/profiledef.sh /usr/share/archiso/configs/releng/ cp -rf ./cfg/profiledef.sh /usr/share/archiso/configs/releng/
cp -rf ./cfg/profiledef.sh ./archiso/configs/releng/profiledef.sh cp -rf ./cfg/profiledef.sh ./archiso/configs/releng/profiledef.sh

View File

@ -4,8 +4,6 @@ on:
push: push:
branches: branches:
- main - main
schedule:
- cron: "0 0 * * *"
permissions: permissions:
contents: write contents: write
@ -28,7 +26,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Initialize - name: Initialize
run: | run: |
pacman -Syuu --noconfirm base-devel archiso docker git nodejs pacman -Syuu --noconfirm base-devel archiso docker git nodejs bc
git clone https://gitlab.archlinux.org/archlinux/archiso git clone https://gitlab.archlinux.org/archlinux/archiso
cp -rf ./cfg/profiledef.sh /usr/share/archiso/configs/releng/ cp -rf ./cfg/profiledef.sh /usr/share/archiso/configs/releng/
cp -rf ./cfg/profiledef.sh ./archiso/configs/releng/profiledef.sh cp -rf ./cfg/profiledef.sh ./archiso/configs/releng/profiledef.sh

View File

@ -9,8 +9,6 @@ on:
push: push:
branches: branches:
- main - main
schedule:
- cron: "0 0 * * *"
permissions: permissions:
contents: write contents: write
@ -69,3 +67,5 @@ echo '#!/bin/zsh' >! $dd/build.zsh
echo $yml_b >> $dd/build.zsh echo $yml_b >> $dd/build.zsh
cat $dd/build.zsh cat $dd/build.zsh
cp -rf $dd/cfg/gh-actions.yml $dd/.github/workflows/release.yml