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
37 changes: 37 additions & 0 deletions .github/workflows/coprocessor-db-migration-docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
name: coprocessor-db-migration-docker-build

on:
workflow_dispatch:
inputs:
ref:
description: 'Branch/ref to build'
required: false
default: 'main'
type: string
trigger_source:
description: 'Source that triggered this workflow'
required: false
default: 'manual'
type: string
pull_request:
push:
branches:
Expand Down Expand Up @@ -61,3 +74,27 @@
image-name: "fhevm/coprocessor/db-migration"
docker-file: "coprocessor/fhevm-engine/db-migration/Dockerfile"
app-cache-dir: "fhevm-coprocessor-db-migration"
output-build-status:
name: coprocessor-db-migration-docker-build/output-build-status
needs: [check-changes, build]
if: always()
permissions:
contents: 'read'
runs-on: ubuntu-latest
outputs:
image-built: ${{ steps.check-build.outputs.image-built }}
image-tag: ${{ steps.check-build.outputs.image-tag }}
steps:
- name: Check if image was built
id: check-build
run: |
# Check if docker build job ran and succeeded
if [[ "${{ needs.build.result }}" == "success" ]]; then

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
echo "image-built=true" >> "$GITHUB_OUTPUT"
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
fi
36 changes: 36 additions & 0 deletions .github/workflows/coprocessor-gw-listener-docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: coprocessor-gw-listener-docker-build

on:
workflow_dispatch:
inputs:
ref:
description: 'Branch/ref to build'
required: false
default: 'main'
type: string
trigger_source:
description: 'Source that triggered this workflow'
required: false
default: 'manual'
type: string
pull_request:
push:
branches:
Expand Down Expand Up @@ -64,3 +76,27 @@
image-name: "fhevm/coprocessor/gw-listener"
docker-file: "./coprocessor/fhevm-engine/gw-listener/Dockerfile"
app-cache-dir: "fhevm-coprocessor-gw-listener"
output-build-status:
name: coprocessor-gw-listener-docker-build/output-build-status
needs: [check-changes, build]
if: always()
permissions:
contents: 'read'
runs-on: ubuntu-latest
outputs:
image-built: ${{ steps.check-build.outputs.image-built }}
image-tag: ${{ steps.check-build.outputs.image-tag }}
steps:
- name: Check if image was built
id: check-build
run: |
# Check if docker build job ran and succeeded
if [[ "${{ needs.build.result }}" == "success" ]]; then

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
Comment on lines +79 to +94
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure all these output-build-status are userful?

AFAIK, the test-suite-orchestrate have access to the ${{ github.sha }} and thus the image tag already. Plus, I think it can check by itself whether the build.result step was equal to success or not right?

echo "image-built=true" >> "$GITHUB_OUTPUT"
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
fi
36 changes: 36 additions & 0 deletions .github/workflows/coprocessor-host-listener-docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: coprocessor-host-listener-docker-build

on:
workflow_dispatch:
inputs:
ref:
description: 'Branch/ref to build'
required: false
default: 'main'
type: string
trigger_source:
description: 'Source that triggered this workflow'
required: false
default: 'manual'
type: string
pull_request:
push:
branches:
Expand Down Expand Up @@ -66,3 +78,27 @@
image-name: "fhevm/coprocessor/host-listener"
docker-file: "coprocessor/fhevm-engine/host-listener/Dockerfile"
app-cache-dir: "fhevm-coprocessor-host-listener"
output-build-status:
name: coprocessor-host-listener-docker-build/output-build-status
needs: [check-changes, build]
if: always()
permissions:
contents: 'read'
runs-on: ubuntu-latest
outputs:
image-built: ${{ steps.check-build.outputs.image-built }}
image-tag: ${{ steps.check-build.outputs.image-tag }}
steps:
- name: Check if image was built
id: check-build
run: |
# Check if docker build job ran and succeeded
if [[ "${{ needs.build.result }}" == "success" ]]; then

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
echo "image-built=true" >> "$GITHUB_OUTPUT"
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
fi
36 changes: 36 additions & 0 deletions .github/workflows/coprocessor-sns-worker-docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: coprocessor-sns-worker-docker-build

on:
workflow_dispatch:
inputs:
ref:
description: 'Branch/ref to build'
required: false
default: 'main'
type: string
trigger_source:
description: 'Source that triggered this workflow'
required: false
default: 'manual'
type: string
pull_request:
push:
branches:
Expand Down Expand Up @@ -64,3 +76,27 @@
image-name: "fhevm/coprocessor/sns-worker"
docker-file: "coprocessor/fhevm-engine/sns-worker/Dockerfile"
app-cache-dir: "fhevm-coprocessor-sns-worker"
output-build-status:
name: coprocessor-sns-worker-docker-build/output-build-status
needs: [check-changes, build]
if: always()
permissions:
contents: 'read'
runs-on: ubuntu-latest
outputs:
image-built: ${{ steps.check-build.outputs.image-built }}
image-tag: ${{ steps.check-build.outputs.image-tag }}
steps:
- name: Check if image was built
id: check-build
run: |
# Check if docker build job ran and succeeded
if [[ "${{ needs.build.result }}" == "success" ]]; then

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
echo "image-built=true" >> "$GITHUB_OUTPUT"
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
fi
36 changes: 36 additions & 0 deletions .github/workflows/coprocessor-tfhe-worker-docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: coprocessor-tfhe-worker-docker-build

on:
workflow_dispatch:
inputs:
ref:
description: 'Branch/ref to build'
required: false
default: 'main'
type: string
trigger_source:
description: 'Source that triggered this workflow'
required: false
default: 'manual'
type: string
pull_request:
push:
branches:
Expand Down Expand Up @@ -64,3 +76,27 @@
image-name: "fhevm/coprocessor/tfhe-worker"
docker-file: "coprocessor/fhevm-engine/tfhe-worker/Dockerfile"
app-cache-dir: "fhevm-coprocessor-tfhe-worker"
output-build-status:
name: coprocessor-tfhe-worker-docker-build/output-build-status
needs: [check-changes, build]
if: always()
permissions:
contents: 'read'
runs-on: ubuntu-latest
outputs:
image-built: ${{ steps.check-build.outputs.image-built }}
image-tag: ${{ steps.check-build.outputs.image-tag }}
steps:
- name: Check if image was built
id: check-build
run: |
# Check if docker build job ran and succeeded
if [[ "${{ needs.build.result }}" == "success" ]]; then

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
echo "image-built=true" >> "$GITHUB_OUTPUT"
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
fi
36 changes: 36 additions & 0 deletions .github/workflows/coprocessor-tx-sender-docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: coprocessor-tx-sender-docker-build

on:
workflow_dispatch:
inputs:
ref:
description: 'Branch/ref to build'
required: false
default: 'main'
type: string
trigger_source:
description: 'Source that triggered this workflow'
required: false
default: 'manual'
type: string
pull_request:
push:
branches:
Expand Down Expand Up @@ -64,3 +76,27 @@
image-name: "fhevm/coprocessor/tx-sender"
docker-file: "./coprocessor/fhevm-engine/transaction-sender/Dockerfile"
app-cache-dir: "fhevm-coprocessor-tx-sender"
output-build-status:
name: coprocessor-tx-sender-docker-build/output-build-status
needs: [check-changes, build]
if: always()
permissions:
contents: 'read'
runs-on: ubuntu-latest
outputs:
image-built: ${{ steps.check-build.outputs.image-built }}
image-tag: ${{ steps.check-build.outputs.image-tag }}
steps:
- name: Check if image was built
id: check-build
run: |
# Check if docker build job ran and succeeded
if [[ "${{ needs.build.result }}" == "success" ]]; then

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
echo "image-built=true" >> "$GITHUB_OUTPUT"
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
fi
36 changes: 36 additions & 0 deletions .github/workflows/coprocessor-zkproof-worker-docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: coprocessor-zkproof-worker-docker-build

on:
workflow_dispatch:
inputs:
ref:
description: 'Branch/ref to build'
required: false
default: 'main'
type: string
trigger_source:
description: 'Source that triggered this workflow'
required: false
default: 'manual'
type: string
pull_request:
push:
branches:
Expand Down Expand Up @@ -64,3 +76,27 @@
image-name: "fhevm/coprocessor/zkproof-worker"
docker-file: "coprocessor/fhevm-engine/zkproof-worker/Dockerfile"
app-cache-dir: "fhevm-coprocessor-zkproof-worker"
output-build-status:
name: coprocessor-zkproof-worker-docker-build/output-build-status
needs: [check-changes, build]
if: always()
permissions:
contents: 'read'
runs-on: ubuntu-latest
outputs:
image-built: ${{ steps.check-build.outputs.image-built }}
image-tag: ${{ steps.check-build.outputs.image-tag }}
steps:
- name: Check if image was built
id: check-build
run: |
# Check if docker build job ran and succeeded
if [[ "${{ needs.build.result }}" == "success" ]]; then

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
echo "image-built=true" >> "$GITHUB_OUTPUT"
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
fi
37 changes: 37 additions & 0 deletions .github/workflows/gateway-contracts-docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: gateway-contracts-docker-build

on:
workflow_dispatch:
inputs:
ref:
description: 'Branch/ref to build'
required: false
default: 'main'
type: string
trigger_source:
description: 'Source that triggered this workflow'
required: false
default: 'manual'
type: string
pull_request:
push:
branches:
Expand Down Expand Up @@ -69,3 +81,28 @@
uses: ./.github/workflows/gateway-contracts-hardhat-tests-docker.yml
with:
image-name: ${{ needs.build.outputs.image }}

output-build-status:
name: gateway-contracts-docker-build/output-build-status
needs: [check-changes, build]
if: always()
permissions:
contents: 'read'
runs-on: ubuntu-latest
outputs:
image-built: ${{ steps.check-build.outputs.image-built }}
image-tag: ${{ steps.check-build.outputs.image-tag }}
steps:
- name: Check if image was built
id: check-build
run: |
# Check if docker build job ran and succeeded
if [[ "${{ needs.build.result }}" == "success" ]]; then

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
echo "image-built=true" >> "$GITHUB_OUTPUT"
echo "image-tag=${{ github.sha }}" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"
echo "⏭️ Image was not built (result: ${{ needs.build.result }})"

Check warning

Code scanning / zizmor

code injection via template expansion Warning

code injection via template expansion

Check notice

Code scanning / zizmor

code injection via template expansion Note

code injection via template expansion
fi
Loading