fix docker
Some checks failed
build and push image / Release (push) Failing after 26s

This commit is contained in:
2026-02-27 17:07:38 +09:00
parent 31114ecd74
commit 9eeabc1fd7

View File

@@ -7,13 +7,9 @@ on:
permissions:
contents: write
packages: write
env:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
IMAGE_NAME: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.APP_TOKEN }}
REGISTRY: ghcr.io
APP_TOKEN: ${{ secrets.APP_TOKEN }}
jobs:
release:
@@ -27,31 +23,22 @@ jobs:
uses: actions/checkout@v4
- name: Install build dependencies
run: pacman -Sy --noconfirm arch-install-scripts zsh
run: pacman -Sy --noconfirm arch-install-scripts zsh docker
- name: Build aios
run: zsh ./build.zsh
- name: Create Docker images
run: |
tar -C ./root.x86_64 -c . | docker import - ${{ env.IMAGE_NAME }}
echo "${{ env.DOCKER_TOKEN }}" | docker login -u syui --password-stdin
docker push ${{ env.IMAGE_NAME }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ env.GITHUB_TOKEN }}
- name: Push to GitHub Container Registry
run: |
docker tag ${{ env.IMAGE_NAME }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tar -C ./root.x86_64 -c . | docker import - syui/aios
echo "${{ env.APP_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker tag syui/aios ghcr.io/syui/aios
docker push ghcr.io/syui/aios
- name: Create new release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ env.APP_TOKEN }}
with:
name: latest
tag_name: latest