merge queue: embarking main (8596c6e) and #1417 together #4747
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: coprocessor-gw-listener-docker-build | |
| on: | |
| workflow_call: | |
| secrets: | |
| AWS_ACCESS_KEY_S3_USER: | |
| required: true | |
| AWS_SECRET_KEY_S3_USER: | |
| required: true | |
| BLOCKCHAIN_ACTIONS_TOKEN: | |
| required: true | |
| CGR_USERNAME: | |
| required: true | |
| CGR_PASSWORD: | |
| required: true | |
| inputs: | |
| is_workflow_call: | |
| description: 'To determine if the trigger was a workflow_call or a pull request' | |
| type: boolean | |
| required: false | |
| default: true | |
| outputs: | |
| build_result: | |
| description: "Result of the build job of this workflow" | |
| value: ${{ jobs.build.result }} | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| release: | |
| types: | |
| - published | |
| permissions: {} | |
| concurrency: | |
| group: fhevm-coprocessor-gw-listener-${{ github.ref_name }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| check-changes: | |
| name: coprocessor-gw-listener-docker-build/check-changes | |
| permissions: | |
| actions: 'read' # Required to read workflow run information | |
| contents: 'read' # Required to checkout repository code | |
| pull-requests: 'read' # Required to read pull request information | |
| runs-on: ubuntu-latest | |
| if: | | |
| inputs.is_workflow_call || | |
| (!inputs.is_workflow_call && !startsWith(github.head_ref, 'mergify/merge-queue/')) | |
| outputs: | |
| changes-coprocessor-gw-listener: ${{ steps.filter.outputs.coprocessor-gw-listener }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: 'false' | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
| id: filter | |
| with: | |
| filters: | | |
| coprocessor-gw-listener: | |
| - .github/workflows/coprocessor-docker-build-gw-listener.yml | |
| - coprocessor/fhevm-engine/gw-listener/** | |
| - coprocessor/fhevm-engine/Cargo.toml | |
| - coprocessor/fhevm-engine/Cargo.lock | |
| build: | |
| name: coprocessor-gw-listener-docker-build/build | |
| needs: check-changes | |
| if: ${{ needs.check-changes.outputs.changes-coprocessor-gw-listener == 'true' || github.event_name == 'release' }} | |
| uses: zama-ai/ci-templates/.github/workflows/common-docker.yml@6c72e3dbc894744c1e228fb165f4c4d657e475b6 # v1.0.1 | |
| secrets: | |
| AWS_ACCESS_KEY_S3_USER: ${{ secrets.AWS_ACCESS_KEY_S3_USER }} | |
| AWS_SECRET_KEY_S3_USER: ${{ secrets.AWS_SECRET_KEY_S3_USER }} | |
| BLOCKCHAIN_ACTIONS_TOKEN: ${{ secrets.BLOCKCHAIN_ACTIONS_TOKEN }} | |
| CGR_USERNAME: ${{ secrets.CGR_USERNAME }} | |
| CGR_PASSWORD: ${{ secrets.CGR_PASSWORD }} | |
| permissions: | |
| actions: 'read' # Required to read workflow run information | |
| contents: 'read' # Required to checkout repository code | |
| pull-requests: 'read' # Required to read pull request information | |
| attestations: 'write' # Required to create build attestations | |
| packages: 'write' # Required to publish Docker images | |
| id-token: 'write' # Required for OIDC authentication | |
| with: | |
| use-cgr-secrets: true | |
| working-directory: "." | |
| docker-context: "." | |
| push_image: true | |
| image-name: "fhevm/coprocessor/gw-listener" | |
| docker-file: "./coprocessor/fhevm-engine/gw-listener/Dockerfile" | |
| app-cache-dir: "fhevm-coprocessor-gw-listener" |