Skip to content

Commit

Permalink
ci(repo): trigger on dependabot and restrict docker build to main (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx authored May 14, 2024
1 parent 75ea131 commit b786889
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/eventindexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
pull_request:
paths:
- "packages/eventindexer/**"
- "go.mod"
- "go.sum"

jobs:
lint-eventindexer:
Expand Down Expand Up @@ -54,7 +56,7 @@ jobs:

push-eventindexer-docker-image:
# only push docker image on PR merge to main
if: ${{ github.event }} == 'push'
if: ${{ github.event == 'push' && github.ref == 'refs/heads/main' }}
name: Build and push docker image
runs-on: [taiko-runner]

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/guardian-prover-health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
pull_request:
paths:
- "packages/guardian-prover-health-check/**"
- "go.mod"
- "go.sum"

jobs:
lint-guardian-prover-health-check:
Expand Down Expand Up @@ -54,7 +56,7 @@ jobs:

push-guardian-prover-health-check-docker-image:
# only push docker image on PR merge to main
if: ${{ github.event }} == 'push'
if: ${{ github.event == 'push' && github.ref == 'refs/heads/main' }}
name: Build and push docker image
runs-on: [taiko-runner]

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/relayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
pull_request:
paths:
- "packages/relayer/**"
- "go.mod"
- "go.sum"

jobs:
lint-relayer:
Expand Down Expand Up @@ -54,7 +56,7 @@ jobs:

push-relayer-docker-image:
# only push docker image on PR merge to main
if: ${{ github.event }} == 'push'
if: ${{ github.event == 'push' && github.ref == 'refs/heads/main' }}
name: Build and push docker image
runs-on: [taiko-runner]

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/taiko-client--test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
pull_request:
paths:
- "packages/taiko-client/**"
- "go.mod"
- "go.sum"

jobs:
lint:
Expand Down

0 comments on commit b786889

Please sign in to comment.