From cd3be19f0695a31d308dd297f26dcb7234ff0b1c Mon Sep 17 00:00:00 2001 From: chenos Date: Sun, 30 Jun 2024 19:30:45 +0800 Subject: [PATCH] chore: update ci --- .github/workflows/build-docker-image.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 73d9f15c16..4ca353d89d 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -8,6 +8,7 @@ on: push: branches: - 'main' + - 'next' paths: - 'packages/**' - 'docker/nocobase/**' @@ -70,7 +71,7 @@ jobs: password: ${{ secrets.ALI_DOCKER_PASSWORD }} - name: Login to Docker Hub - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} @@ -79,7 +80,7 @@ jobs: - name: Set tags id: set-tags run: | - if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then + if [[ "${{ github.ref }}" == "refs/heads/main" ]] || [[ "${{ github.ref }}" == "refs/heads/next" ]]; then echo "::set-output name=tags::${{ steps.meta.outputs.tags }},${{ secrets.ALI_DOCKER_REGISTRY }}/${{ steps.meta.outputs.tags }},${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/${{ steps.meta.outputs.tags }}" else echo "::set-output name=tags::${{ secrets.ALI_DOCKER_REGISTRY }}/${{ steps.meta.outputs.tags }}"