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:
|
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 }}
|
||||||
|
|
||||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -2,10 +2,8 @@ name: release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- 'v*'
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *'
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
26
README.md
26
README.md
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user