From 9eeabc1fd7395d53e2fe9660df27a3df46b270d9 Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 27 Feb 2026 17:07:38 +0900 Subject: [PATCH] fix docker --- .github/workflows/release.yml | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94d38ad..36974dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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