Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/fast-revert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
revert:
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' || github.event.label.name == 'Trigger: Revert'
github.repository == 'getsentry/taskbroker' &&
(github.event_name == 'workflow_dispatch' || github.event.label.name == 'Trigger: Revert')
steps:
- name: Get auth token
id: token
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
platforms: linux/${{ matrix.platform }}
dockerfile_path: './Dockerfile'
build_args: TASKBROKER_GIT_REVISION=${{ github.sha }}
ghcr: true
ghcr: ${{ github.repository == 'getsentry/taskbroker' }}
Comment thread
sentry[bot] marked this conversation as resolved.
tag_suffix: -${{ matrix.platform }}
publish_on_pr: ${{ github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' }}
google_ar: false
Expand All @@ -38,7 +38,7 @@ jobs:
assemble-taskbroker-image:
runs-on: ubuntu-latest
needs: [build]
if: ${{ (github.ref_name == 'main' || startsWith(github.ref_name, 'release/')) && github.event_name != 'pull_request' }}
if: ${{ github.repository == 'getsentry/taskbroker' && (github.ref_name == 'main' || startsWith(github.ref_name, 'release/')) && github.event_name != 'pull_request' }}
permissions:
contents: read
packages: write
Expand All @@ -62,7 +62,7 @@ jobs:

build-production:
runs-on: ubuntu-24.04
if: github.ref_name == github.event.repository.default_branch
if: ${{ github.repository == 'getsentry/taskbroker' && github.ref_name == github.event.repository.default_branch }}
name: Build and push production images to ${{ matrix.registry }} registry
strategy:
matrix:
Expand Down Expand Up @@ -93,6 +93,7 @@ jobs:
google_service_account: gha-gcr-push@sac-prod-sa.iam.gserviceaccount.com

self-hosted-end-to-end:
if: ${{ github.repository == 'getsentry/taskbroker' }}
Comment thread
aminvakil marked this conversation as resolved.
needs: [assemble-taskbroker-image]
Comment thread
sentry[bot] marked this conversation as resolved.
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-example-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
platforms: linux/amd64
dockerfile_path: './clients/python/Dockerfile.example'
build_context: './clients/python'
ghcr: true
ghcr: ${{ github.repository == 'getsentry/taskbroker' }}
publish_on_pr: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
google_ar: false
tag_nightly: false
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ permissions:

jobs:
release:
if: ${{ github.repository == 'getsentry/taskbroker' }}
runs-on: ubuntu-latest
steps:
- name: Get auth token
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ permissions:

jobs:
release:
if: ${{ github.repository == 'getsentry/taskbroker' }}
runs-on: ubuntu-latest
name: "Release a new taskbroker version"
steps:
Expand Down