Compare commits

...

4 Commits

Author SHA1 Message Date
6e12f2e798
fix podman
Some checks failed
build and push image / Release (push) Has been cancelled
2025-04-12 02:51:20 +09:00
c3772d1b93
fix actions 2025-04-12 02:51:16 +09:00
d4e96f0282
fix actions 2025-04-12 02:51:16 +09:00
2dc46f5897
fix gh-actions 2025-04-12 02:51:15 +09:00
4 changed files with 28 additions and 21 deletions

View File

@ -0,0 +1,5 @@
# https://github.com/containers/shortnames
unqualified-search-registries=["git.syui.ai", "docker.io", "ghcr.io"]
[aliases]
"aios"="git.syui.ai/ai/os"

View File

@ -2,12 +2,8 @@ name: build and push image
on: on:
schedule: schedule:
- cron: '0 12 * * *' - cron: '0 0 * * *'
push: push:
branches:
- main
paths:
- '!README.md'
env: env:
TAG: latest TAG: latest
@ -21,14 +17,14 @@ jobs:
name: Release name: Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: syui/aios image: ghcr.io/syui/aios
options: --privileged options: --privileged
steps: steps:
- name: Initialize - name: Initialize
run: | run: |
pacman -Syuu --noconfirm base-devel archiso docker git curl pacman -Syuu --noconfirm base-devel archiso docker git curl
docker pull syui/aios docker pull ghcr.io/syui/aios
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 }}

View File

@ -2,10 +2,8 @@ name: release
on: on:
push: push:
branches: tags:
- main - 'v*'
schedule:
- cron: '0 0 * * *'
permissions: permissions:
contents: write contents: write

View File

@ -54,20 +54,28 @@ $ docker run -it ghcr.io/syui/aios ai
## podman ## podman
```sh ```sh
$ podman pull aios if [ ! -d ~/ai/os/.git ];then
mkdir -p ~/ai
$ podman machine init git clone https://git.syui.ai/ai/os ~/ai/os
$ podman machine start else
cd ~/ai/os
fi
if [ ! -d ~/.config/containers/registries.conf.d ];then
mkdir -p ~/.config/containers/registries.conf.d
fi
ln -s `pwd`/.config/containers/registries.conf.d/ai.conf ~/.config/containers/registries.conf.d/ai.conf
``` ```
https://github.com/containers/shortnames ```sh
$ podman pull aios
```
> /etc/containers/registries.conf.d/ai.conf > ~/.config/containers/registries.conf.d/ai.conf
>
> ~/.config/containers/registries.conf
```sh ```sh
unqualified-search-registries = ['docker.io', 'git.syui.ai', 'ghcr.io'] # https://github.com/containers/shortnames
# ~/.config/containers/registries.conf.d/ai.conf
unqualified-search-registries = ['git.syui.ai', 'docker.io', 'ghcr.io']
[aliases] [aliases]
"aios" = "git.syui.ai/ai/os" "aios" = "git.syui.ai/ai/os"