diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index c882a0a8..4a92481c 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -66,12 +66,18 @@ jobs: git config --global url."https://${ACCESS_TOKEN}:@github.com/".insteadOf "https://github.com/" - name: Login to DockerHub + if: github.event.pull_request.head.repo.full_name == github.repository uses: docker/login-action@v2 with: registry: docker.io username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Set up Docker without login for forked PR + if: github.event.pull_request.head.repo.full_name != github.repository + run: | + echo "::warning::Running in fork mode without DockerHub authentication" + - name: Set up Ginkgo run: | go install github.com/onsi/ginkgo/ginkgo@latest @@ -96,7 +102,6 @@ jobs: kind load docker-image --name pulsar-dev docker.cloudsmith.io/streamnative/operators/kubebuilder/kube-rbac-proxy:v0.8.0 df -h - - name: Install Pulsar Operators and sn-platform run: | helm repo add streamnative https://charts.streamnative.io