Skip to content

Commit e18de8f

Browse files
committed
ci(test-suite): add manual trigger to all docker builds
1 parent c6f3283 commit e18de8f

13 files changed

+470
-0
lines changed

.github/workflows/coprocessor-db-migration-docker-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
name: coprocessor-db-migration-docker-build
2+
23
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch/ref to build'
8+
required: false
9+
default: 'main'
10+
type: string
11+
trigger_source:
12+
description: 'Source that triggered this workflow'
13+
required: false
14+
default: 'manual'
15+
type: string
316
pull_request:
417
push:
518
branches:
@@ -61,3 +74,26 @@ jobs:
6174
image-name: "fhevm/coprocessor/db-migration"
6275
docker-file: "coprocessor/fhevm-engine/db-migration/Dockerfile"
6376
app-cache-dir: "fhevm-coprocessor-db-migration"
77+
output-build-status:
78+
name: coprocessor-db-migration-docker-build/output-build-status
79+
needs: [check-changes, build]
80+
if: always()
81+
permissions:
82+
contents: 'read'
83+
runs-on: ubuntu-latest
84+
outputs:
85+
image-built: ${{ steps.check-build.outputs.image-built }}
86+
image-tag: ${{ steps.check-build.outputs.image-tag }}
87+
steps:
88+
- name: Check if image was built
89+
id: check-build
90+
run: |
91+
# Check if docker build job ran and succeeded
92+
if [[ "${{ needs.build.result }}" == "success" ]]; then
93+
echo "image-built=true" >> "$GITHUB_OUTPUT"
94+
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"
95+
echo "✅ Image was built successfully"
96+
else
97+
echo "image-built=false" >> "$GITHUB_OUTPUT"
98+
echo "image-tag=" >> "$GITHUB_OUTPUT"
99+
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

.github/workflows/coprocessor-gw-listener-docker-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: coprocessor-gw-listener-docker-build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch/ref to build'
8+
required: false
9+
default: 'main'
10+
type: string
11+
trigger_source:
12+
description: 'Source that triggered this workflow'
13+
required: false
14+
default: 'manual'
15+
type: string
416
pull_request:
517
push:
618
branches:
@@ -64,3 +76,27 @@ jobs:
6476
image-name: "fhevm/coprocessor/gw-listener"
6577
docker-file: "./coprocessor/fhevm-engine/gw-listener/Dockerfile"
6678
app-cache-dir: "fhevm-coprocessor-gw-listener"
79+
output-build-status:
80+
name: coprocessor-gw-listener-docker-build/output-build-status
81+
needs: [check-changes, build]
82+
if: always()
83+
permissions:
84+
contents: 'read'
85+
runs-on: ubuntu-latest
86+
outputs:
87+
image-built: ${{ steps.check-build.outputs.image-built }}
88+
image-tag: ${{ steps.check-build.outputs.image-tag }}
89+
steps:
90+
- name: Check if image was built
91+
id: check-build
92+
run: |
93+
# Check if docker build job ran and succeeded
94+
if [[ "${{ needs.build.result }}" == "success" ]]; then
95+
echo "image-built=true" >> "$GITHUB_OUTPUT"
96+
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"
97+
echo "✅ Image was built successfully"
98+
else
99+
echo "image-built=false" >> "$GITHUB_OUTPUT"
100+
echo "image-tag=" >> "$GITHUB_OUTPUT"
101+
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"
102+
fi

.github/workflows/coprocessor-host-listener-docker-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: coprocessor-host-listener-docker-build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch/ref to build'
8+
required: false
9+
default: 'main'
10+
type: string
11+
trigger_source:
12+
description: 'Source that triggered this workflow'
13+
required: false
14+
default: 'manual'
15+
type: string
416
pull_request:
517
push:
618
branches:
@@ -66,3 +78,27 @@ jobs:
6678
image-name: "fhevm/coprocessor/host-listener"
6779
docker-file: "coprocessor/fhevm-engine/host-listener/Dockerfile"
6880
app-cache-dir: "fhevm-coprocessor-host-listener"
81+
output-build-status:
82+
name: coprocessor-host-listener-docker-build/output-build-status
83+
needs: [check-changes, build]
84+
if: always()
85+
permissions:
86+
contents: 'read'
87+
runs-on: ubuntu-latest
88+
outputs:
89+
image-built: ${{ steps.check-build.outputs.image-built }}
90+
image-tag: ${{ steps.check-build.outputs.image-tag }}
91+
steps:
92+
- name: Check if image was built
93+
id: check-build
94+
run: |
95+
# Check if docker build job ran and succeeded
96+
if [[ "${{ needs.build.result }}" == "success" ]]; then
97+
echo "image-built=true" >> "$GITHUB_OUTPUT"
98+
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"
99+
echo "✅ Image was built successfully"
100+
else
101+
echo "image-built=false" >> "$GITHUB_OUTPUT"
102+
echo "image-tag=" >> "$GITHUB_OUTPUT"
103+
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"
104+
fi

.github/workflows/coprocessor-sns-worker-docker-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: coprocessor-sns-worker-docker-build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch/ref to build'
8+
required: false
9+
default: 'main'
10+
type: string
11+
trigger_source:
12+
description: 'Source that triggered this workflow'
13+
required: false
14+
default: 'manual'
15+
type: string
416
pull_request:
517
push:
618
branches:
@@ -64,3 +76,27 @@ jobs:
6476
image-name: "fhevm/coprocessor/sns-worker"
6577
docker-file: "coprocessor/fhevm-engine/sns-worker/Dockerfile"
6678
app-cache-dir: "fhevm-coprocessor-sns-worker"
79+
output-build-status:
80+
name: coprocessor-sns-worker-docker-build/output-build-status
81+
needs: [check-changes, build]
82+
if: always()
83+
permissions:
84+
contents: 'read'
85+
runs-on: ubuntu-latest
86+
outputs:
87+
image-built: ${{ steps.check-build.outputs.image-built }}
88+
image-tag: ${{ steps.check-build.outputs.image-tag }}
89+
steps:
90+
- name: Check if image was built
91+
id: check-build
92+
run: |
93+
# Check if docker build job ran and succeeded
94+
if [[ "${{ needs.build.result }}" == "success" ]]; then
95+
echo "image-built=true" >> "$GITHUB_OUTPUT"
96+
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"
97+
echo "✅ Image was built successfully"
98+
else
99+
echo "image-built=false" >> "$GITHUB_OUTPUT"
100+
echo "image-tag=" >> "$GITHUB_OUTPUT"
101+
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"
102+
fi

.github/workflows/coprocessor-tfhe-worker-docker-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: coprocessor-tfhe-worker-docker-build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch/ref to build'
8+
required: false
9+
default: 'main'
10+
type: string
11+
trigger_source:
12+
description: 'Source that triggered this workflow'
13+
required: false
14+
default: 'manual'
15+
type: string
416
pull_request:
517
push:
618
branches:
@@ -64,3 +76,27 @@ jobs:
6476
image-name: "fhevm/coprocessor/tfhe-worker"
6577
docker-file: "coprocessor/fhevm-engine/tfhe-worker/Dockerfile"
6678
app-cache-dir: "fhevm-coprocessor-tfhe-worker"
79+
output-build-status:
80+
name: coprocessor-tfhe-worker-docker-build/output-build-status
81+
needs: [check-changes, build]
82+
if: always()
83+
permissions:
84+
contents: 'read'
85+
runs-on: ubuntu-latest
86+
outputs:
87+
image-built: ${{ steps.check-build.outputs.image-built }}
88+
image-tag: ${{ steps.check-build.outputs.image-tag }}
89+
steps:
90+
- name: Check if image was built
91+
id: check-build
92+
run: |
93+
# Check if docker build job ran and succeeded
94+
if [[ "${{ needs.build.result }}" == "success" ]]; then
95+
echo "image-built=true" >> "$GITHUB_OUTPUT"
96+
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"
97+
echo "✅ Image was built successfully"
98+
else
99+
echo "image-built=false" >> "$GITHUB_OUTPUT"
100+
echo "image-tag=" >> "$GITHUB_OUTPUT"
101+
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"
102+
fi

.github/workflows/coprocessor-tx-sender-docker-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: coprocessor-tx-sender-docker-build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch/ref to build'
8+
required: false
9+
default: 'main'
10+
type: string
11+
trigger_source:
12+
description: 'Source that triggered this workflow'
13+
required: false
14+
default: 'manual'
15+
type: string
416
pull_request:
517
push:
618
branches:
@@ -64,3 +76,27 @@ jobs:
6476
image-name: "fhevm/coprocessor/tx-sender"
6577
docker-file: "./coprocessor/fhevm-engine/transaction-sender/Dockerfile"
6678
app-cache-dir: "fhevm-coprocessor-tx-sender"
79+
output-build-status:
80+
name: coprocessor-tx-sender-docker-build/output-build-status
81+
needs: [check-changes, build]
82+
if: always()
83+
permissions:
84+
contents: 'read'
85+
runs-on: ubuntu-latest
86+
outputs:
87+
image-built: ${{ steps.check-build.outputs.image-built }}
88+
image-tag: ${{ steps.check-build.outputs.image-tag }}
89+
steps:
90+
- name: Check if image was built
91+
id: check-build
92+
run: |
93+
# Check if docker build job ran and succeeded
94+
if [[ "${{ needs.build.result }}" == "success" ]]; then
95+
echo "image-built=true" >> "$GITHUB_OUTPUT"
96+
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"
97+
echo "✅ Image was built successfully"
98+
else
99+
echo "image-built=false" >> "$GITHUB_OUTPUT"
100+
echo "image-tag=" >> "$GITHUB_OUTPUT"
101+
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"
102+
fi

.github/workflows/coprocessor-zkproof-worker-docker-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: coprocessor-zkproof-worker-docker-build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch/ref to build'
8+
required: false
9+
default: 'main'
10+
type: string
11+
trigger_source:
12+
description: 'Source that triggered this workflow'
13+
required: false
14+
default: 'manual'
15+
type: string
416
pull_request:
517
push:
618
branches:
@@ -64,3 +76,27 @@ jobs:
6476
image-name: "fhevm/coprocessor/zkproof-worker"
6577
docker-file: "coprocessor/fhevm-engine/zkproof-worker/Dockerfile"
6678
app-cache-dir: "fhevm-coprocessor-zkproof-worker"
79+
output-build-status:
80+
name: coprocessor-zkproof-worker-docker-build/output-build-status
81+
needs: [check-changes, build]
82+
if: always()
83+
permissions:
84+
contents: 'read'
85+
runs-on: ubuntu-latest
86+
outputs:
87+
image-built: ${{ steps.check-build.outputs.image-built }}
88+
image-tag: ${{ steps.check-build.outputs.image-tag }}
89+
steps:
90+
- name: Check if image was built
91+
id: check-build
92+
run: |
93+
# Check if docker build job ran and succeeded
94+
if [[ "${{ needs.build.result }}" == "success" ]]; then
95+
echo "image-built=true" >> "$GITHUB_OUTPUT"
96+
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"
97+
echo "✅ Image was built successfully"
98+
else
99+
echo "image-built=false" >> "$GITHUB_OUTPUT"
100+
echo "image-tag=" >> "$GITHUB_OUTPUT"
101+
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"
102+
fi

.github/workflows/gateway-contracts-docker-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: gateway-contracts-docker-build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch/ref to build'
8+
required: false
9+
default: 'main'
10+
type: string
11+
trigger_source:
12+
description: 'Source that triggered this workflow'
13+
required: false
14+
default: 'manual'
15+
type: string
416
pull_request:
517
push:
618
branches:
@@ -69,3 +81,27 @@ jobs:
6981
uses: ./.github/workflows/gateway-contracts-hardhat-tests-docker.yml
7082
with:
7183
image-name: ${{ needs.build.outputs.image }}
84+
85+
output-build-status:
86+
name: gateway-contracts-docker-build/output-build-status
87+
needs: [check-changes, build]
88+
if: always()
89+
permissions:
90+
contents: 'read'
91+
runs-on: ubuntu-latest
92+
outputs:
93+
image-built: ${{ steps.check-build.outputs.image-built }}
94+
image-tag: ${{ steps.check-build.outputs.image-tag }}
95+
steps:
96+
- name: Check if image was built
97+
id: check-build
98+
run: |
99+
# Check if docker build job ran and succeeded
100+
if [[ "${{ needs.build.result }}" == "success" ]]; then
101+
echo "image-built=true" >> "$GITHUB_OUTPUT"
102+
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"
103+
echo "✅ Image was built successfully"
104+
else
105+
echo "image-built=false" >> "$GITHUB_OUTPUT"
106+
echo "image-tag=" >> "$GITHUB_OUTPUT"
107+
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

0 commit comments

Comments
 (0)