Skip to content

Commit e496e4b

Browse files
committed
skip testnet deployment in PRs
1 parent 486a952 commit e496e4b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/docker-build-ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
- "tsconfig*.json"
1919
- ".github/workflows/docker-build-ci.yml"
2020
pull_request:
21-
types: [opened, synchronize, reopened, ready_for_review]
21+
types: [opened, synchronize, reopened, ready_for_review, labeled]
2222
workflow_dispatch:
2323

2424
concurrency:
@@ -52,7 +52,12 @@ jobs:
5252
5353
docker-build-ci:
5454
needs: [changes]
55-
if: github.event_name != 'pull_request' || needs.changes.outputs.relevant == 'true'
55+
# ci-light (default): skip docker build + compose tests on PRs.
56+
# Add the "ci-full" label to a PR to run the full suite.
57+
if: >-
58+
github.event_name != 'pull_request' ||
59+
(needs.changes.outputs.relevant == 'true' &&
60+
contains(github.event.pull_request.labels.*.name, 'ci-full'))
5661
runs-on: ubuntu-latest
5762
steps:
5863
- name: Checkout code
@@ -122,6 +127,7 @@ jobs:
122127
run: docker compose --profile full down -v --remove-orphans
123128

124129
- name: Deploy to testnet
130+
if: github.ref == 'refs/heads/main'
125131
env:
126132
FPC_DEPLOYER_SECRET_KEY: ${{ secrets.FPC_DEPLOYER_SECRET_KEY }}
127133
FPC_OPERATOR_SECRET_KEY: ${{ secrets.FPC_OPERATOR_SECRET_KEY }}

0 commit comments

Comments
 (0)