From 69ac18a9525542d2283179f0e731781c8ebf56a4 Mon Sep 17 00:00:00 2001 From: chaos Date: Mon, 6 Jul 2026 13:55:19 +0800 Subject: [PATCH] ci: add Gitea container registry push (alpha) --- .github/workflows/docker-image-alpha.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/docker-image-alpha.yml b/.github/workflows/docker-image-alpha.yml index 116dd145..b3e836a4 100644 --- a/.github/workflows/docker-image-alpha.yml +++ b/.github/workflows/docker-image-alpha.yml @@ -55,6 +55,13 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Log in to Gitea Container Registry + uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + with: + registry: git.nomsg.cn + username: chaos + password: ${{ secrets.CONTAINER_TOKEN }} + - name: Log in to GHCR uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 with: @@ -69,6 +76,7 @@ jobs: images: | calciumion/new-api ghcr.io/${{ env.GHCR_REPOSITORY }} + git.nomsg.cn/chaos/chaos-api - name: Build & push single-arch (to both registries) id: build @@ -82,6 +90,8 @@ jobs: calciumion/new-api:${{ steps.version.outputs.value }}-${{ matrix.arch }} ghcr.io/${{ env.GHCR_REPOSITORY }}:alpha-${{ matrix.arch }} ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ steps.version.outputs.value }}-${{ matrix.arch }} + git.nomsg.cn/chaos/chaos-api:alpha-${{ matrix.arch }} + git.nomsg.cn/chaos/chaos-api:${{ steps.version.outputs.value }}-${{ matrix.arch }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max @@ -134,6 +144,13 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Log in to Gitea Container Registry + uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 + with: + registry: git.nomsg.cn + username: chaos + password: ${{ secrets.CONTAINER_TOKEN }} + - name: Create & push manifest (Docker Hub - alpha) run: | docker buildx imagetools create \