Compare commits
4 Commits
latest
...
cd9472d18a
Author | SHA1 | Date | |
---|---|---|---|
cd9472d18a
|
|||
74c7d3b1bb
|
|||
c3330a75d9
|
|||
f1c3874ed2
|
@@ -1,5 +1,11 @@
|
|||||||
name: Build and Push Image
|
name: build and push image
|
||||||
on: [ push ]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- '!README.md'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TAG: latest
|
TAG: latest
|
||||||
@@ -23,18 +29,4 @@ jobs:
|
|||||||
docker tag syui/aios ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
docker tag syui/aios ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
||||||
echo "${{ env.APP_TOKEN }}" | docker login ${{ env.REGISTRY }} -u syui --password-stdin
|
echo "${{ env.APP_TOKEN }}" | docker login ${{ env.REGISTRY }} -u syui --password-stdin
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
|
||||||
- uses: actions/setup-go@v4
|
|
||||||
with:
|
|
||||||
go-version: 'stable'
|
|
||||||
- name: prepare release
|
|
||||||
run: |
|
|
||||||
mkdir out
|
|
||||||
cd out
|
|
||||||
curl -sLO https://github.com/syui/aios/releases/download/latest/aios-bootstrap.tar.gz
|
|
||||||
- name: release
|
|
||||||
id: use-go-action
|
|
||||||
uses: https://gitea.com/actions/release-action@main
|
|
||||||
with:
|
|
||||||
files: |-
|
|
||||||
out/**
|
|
||||||
api_key: '${{secrets.APP_TOKEN}}'
|
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -4,6 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths:
|
||||||
|
- '!README.md'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
.config/ai
|
.config/ai
|
||||||
|
**.DS_Store
|
||||||
|
24
README.md
24
README.md
@@ -1,18 +1,32 @@
|
|||||||
## ai `os`
|
## <img src="./icon/ai.png" width="30"> ai `os`
|
||||||
|
|
||||||
<img src="./icon/ai.png" width="100">
|
`aios` is a simple linux distribution based on `archlinux`.
|
||||||
|
|
||||||
- name : ai os
|
|rule|var|
|
||||||
- image : [aios-bootstrap.tar.gz](https://github.com/syui/aios/releases/tag/latest)
|
|---|---|
|
||||||
- base : [archlinux](https://gitlab.archlinux.org/archlinux)
|
|name|ai os|
|
||||||
|
|code|aios|
|
||||||
|
|id|ai|
|
||||||
|
|container|[git.syui.ai/ai/os](https://git.syui.ai/ai/-/packages/container/os/latest)|
|
||||||
|
|image|[aios-bootstrap.tar.gz](https://github.com/syui/aios/releases/download/latest/aios-bootstrap.tar.gz)|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ docker run -it git.syui.ai/ai/os ai
|
$ docker run -it git.syui.ai/ai/os ai
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### base
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# https://gitlab.archlinux.org/archlinux
|
||||||
|
$ git clone https://gitlab.archlinux.org/archlinux/archiso
|
||||||
|
```
|
||||||
|
|
||||||
### docker
|
### docker
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
# https://git.syui.ai/ai/-/packages/container/os
|
||||||
|
$ docker run -it git.syui.ai/ai/os ai
|
||||||
|
|
||||||
# https://hub.docker.com/r/syui/aios
|
# https://hub.docker.com/r/syui/aios
|
||||||
$ docekr run -it syui/aios ai
|
$ docekr run -it syui/aios ai
|
||||||
|
|
||||||
|
@@ -14,7 +14,9 @@ Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch' >> ./root.x86_64/etc/pa
|
|||||||
sed -i s/CheckSpace/#CheckeSpace/ root.x86_64/etc/pacman.conf
|
sed -i s/CheckSpace/#CheckeSpace/ root.x86_64/etc/pacman.conf
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --init'
|
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --init'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --populate archlinux'
|
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --populate archlinux'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'pacman -Syu --noconfirm base base-devel linux vim git zsh rust openssh openssl jq go nodejs docker'
|
arch-chroot root.x86_64 /bin/sh -c 'pacman -Syu --noconfirm base base-devel linux vim git zsh rust openssh openssl jq go nodejs docker podman'
|
||||||
|
arch-chroot root.x86_64 /bin/sh -c 'mkdir -p /etc/containers/registries.conf.d'
|
||||||
|
arch-chroot root.x86_64 /bin/sh -c 'curl -sL -o /etc/containers/registries.conf.d/ai.conf https://git.syui.ai/ai/os/raw/branch/main/cfg/ai.conf'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'chsh -s /bin/zsh'
|
arch-chroot root.x86_64 /bin/sh -c 'chsh -s /bin/zsh'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/ai /bin/ && ai ai'
|
arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/ai /bin/ && ai ai'
|
||||||
tar -zcvf aios-bootstrap.tar.gz root.x86_64/
|
tar -zcvf aios-bootstrap.tar.gz root.x86_64/
|
||||||
|
4
cfg/ai.conf
Normal file
4
cfg/ai.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
unqualified-search-registries = ['docker.io', 'git.syui.ai', 'ghcr.io']
|
||||||
|
|
||||||
|
[aliases]
|
||||||
|
"aios" = "git.syui.ai/ai/os"
|
@@ -43,7 +43,9 @@ jobs:
|
|||||||
sed -i s/CheckSpace/#CheckeSpace/ root.x86_64/etc/pacman.conf
|
sed -i s/CheckSpace/#CheckeSpace/ root.x86_64/etc/pacman.conf
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --init'
|
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --init'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --populate archlinux'
|
arch-chroot root.x86_64 /bin/sh -c 'pacman-key --populate archlinux'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'pacman -Syu --noconfirm base base-devel linux vim git zsh rust openssh openssl jq go nodejs docker'
|
arch-chroot root.x86_64 /bin/sh -c 'pacman -Syu --noconfirm base base-devel linux vim git zsh rust openssh openssl jq go nodejs docker podman'
|
||||||
|
arch-chroot root.x86_64 /bin/sh -c 'mkdir -p /etc/containers/registries.conf.d'
|
||||||
|
arch-chroot root.x86_64 /bin/sh -c 'curl -sL -o /etc/containers/registries.conf.d/ai.conf https://git.syui.ai/ai/os/raw/branch/main/cfg/ai.conf'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'chsh -s /bin/zsh'
|
arch-chroot root.x86_64 /bin/sh -c 'chsh -s /bin/zsh'
|
||||||
arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/ai /bin/ && ai ai'
|
arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/ai /bin/ && ai ai'
|
||||||
tar -zcvf aios-bootstrap.tar.gz root.x86_64/
|
tar -zcvf aios-bootstrap.tar.gz root.x86_64/
|
||||||
|
Reference in New Issue
Block a user