-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathcoprocessor-stress-test-tool-docker-build.yml
More file actions
66 lines (62 loc) · 2.62 KB
/
coprocessor-stress-test-tool-docker-build.yml
File metadata and controls
66 lines (62 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: coprocessor-stress-test-tool-docker-build
on:
pull_request:
push:
branches:
- main
release:
types:
- published
permissions: {}
concurrency:
group: fhevm-coprocessor-stress-test-tool-${{ github.ref_name }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
check-changes:
name: coprocessor-stress-test-tool-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
outputs:
changes-coprocessor-stress-test-tool: ${{ steps.filter.outputs.coprocessor-stress-test-tool }}
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-stress-test-tool:
- .github/workflows/coprocessor-docker-build-stress-test-tool.yml
- coprocessor/fhevm-engine/stress-test-generator/**
- coprocessor/fhevm-engine/Cargo.toml
- coprocessor/fhevm-engine/Cargo.lock
build:
name: coprocessor-stress-test-tool-docker-build/build
needs: check-changes
if: ${{ needs.check-changes.outputs.changes-coprocessor-stress-test-tool == '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/stress-test-tool"
docker-file: "coprocessor/fhevm-engine/stress-test-generator/Dockerfile"
app-cache-dir: "fhevm-coprocessor-stress-test-tool"