Compare commits
4 Commits
6956433169
...
6e12f2e798
Author | SHA1 | Date | |
---|---|---|---|
6e12f2e798 | |||
c3772d1b93 | |||
d4e96f0282 | |||
2dc46f5897 |
5
.config/containers/registries.conf.d/ai.conf
Normal file
5
.config/containers/registries.conf.d/ai.conf
Normal 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"
|
@ -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 }}
|
||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -2,10 +2,8 @@ name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
26
README.md
26
README.md
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user