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:
schedule:
- cron: '0 12 * * *'
- cron: '0 0 * * *'
push:
branches:
- main
paths:
- '!README.md'
env:
TAG: latest
@ -21,13 +17,13 @@ jobs:
name: Release
runs-on: ubuntu-latest
container:
image: syui/aios
image: ghcr.io/syui/aios
options: --privileged
steps:
- name: Initialize
run: |
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 }}
echo "${{ env.APP_TOKEN }}" | docker login ${{ env.REGISTRY }} -u syui --password-stdin
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}

View File

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

View File

@ -54,20 +54,28 @@ $ docker run -it ghcr.io/syui/aios ai
## podman
```sh
$ podman pull aios
$ podman machine init
$ podman machine start
if [ ! -d ~/ai/os/.git ];then
mkdir -p ~/ai
git clone https://git.syui.ai/ai/os ~/ai/os
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
> ~/.config/containers/registries.conf.d/ai.conf
```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]
"aios" = "git.syui.ai/ai/os"