Skip to content

Commit

Permalink
CI: Only run OCI workflow for branches on main repository
Browse files Browse the repository at this point in the history
This workflow fails for PRs created from outside branches because the
runner doesn't have access to secrets from the main repository, so the
runner can't authenticate with docker.
  • Loading branch information
the-mikedavis committed Sep 11, 2024
1 parent 99e0ee0 commit 14eca5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rabbitmq-oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ concurrency:
cancel-in-progress: true
jobs:
build-package-generic-unix:
# Limit this workflow to branches in the main repository.
# Forks are unable to run this workflow because they don't
# have access to the docker login credentials.
if: github.repository == 'rabbitmq/ra'
runs-on: ubuntu-latest
outputs:
TAG_1: ${{ steps.tags.outputs.TAG_1 }}
Expand Down

0 comments on commit 14eca5f

Please sign in to comment.