diff --git a/.github/workflows/pub-docker-img.yml b/.github/workflows/pub-docker-img.yml index 9a6bc22..998d5a3 100644 --- a/.github/workflows/pub-docker-img.yml +++ b/.github/workflows/pub-docker-img.yml @@ -43,7 +43,7 @@ env: jobs: pr-smoke: name: PR Docker Smoke - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository runs-on: blacksmith-2vcpu-ubuntu-2404 timeout-minutes: 25 permissions: @@ -80,7 +80,7 @@ jobs: publish: name: Build and Push Docker Image - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.repository == 'zeroclaw-labs/zeroclaw' runs-on: blacksmith-2vcpu-ubuntu-2404 timeout-minutes: 25 permissions: @@ -127,4 +127,4 @@ jobs: context: . push: true tags: ${{ steps.meta.outputs.tags }} - platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }} + platforms: ${{ startsWith(github.ref, 'refs/tags/v') && 'linux/amd64,linux/arm64' || 'linux/amd64' }}