From 1bfc46aa703004807c74e69020375e294190a816 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Thu, 1 Feb 2024 19:02:57 +0800 Subject: [PATCH] ci: update workflows --- ...image-amd64-en.yml => docker-image-amd64.yml} | 16 +++++++++++----- .github/workflows/docker-image-arm64.yml | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) rename .github/workflows/{docker-image-amd64-en.yml => docker-image-amd64.yml} (75%) diff --git a/.github/workflows/docker-image-amd64-en.yml b/.github/workflows/docker-image-amd64.yml similarity index 75% rename from .github/workflows/docker-image-amd64-en.yml rename to .github/workflows/docker-image-amd64.yml index 44dc0bc00..d0882d9cc 100644 --- a/.github/workflows/docker-image-amd64-en.yml +++ b/.github/workflows/docker-image-amd64.yml @@ -1,9 +1,10 @@ -name: Publish Docker image (amd64, English) +name: Publish Docker image (amd64) on: push: tags: - '*' + - '!*-alpha*' workflow_dispatch: inputs: name: @@ -24,21 +25,26 @@ jobs: run: | git describe --tags > VERSION - - name: Translate - run: | - python ./i18n/translate.py --repository_path . --json_file_path ./i18n/en.json - name: Log in to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v4 with: images: | - justsong/one-api-en + calciumion/new-api + ghcr.io/${{ github.repository }} - name: Build and push Docker images uses: docker/build-push-action@v3 diff --git a/.github/workflows/docker-image-arm64.yml b/.github/workflows/docker-image-arm64.yml index d6449eb89..44aec8072 100644 --- a/.github/workflows/docker-image-arm64.yml +++ b/.github/workflows/docker-image-arm64.yml @@ -49,7 +49,7 @@ jobs: uses: docker/metadata-action@v4 with: images: | - justsong/one-api + calciumion/new-api ghcr.io/${{ github.repository }} - name: Build and push Docker images