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 }}"