-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathcoprocessor-db-migration-docker-build.yml
More file actions
56 lines (54 loc) · 1.91 KB
/
coprocessor-db-migration-docker-build.yml
File metadata and controls
56 lines (54 loc) · 1.91 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
name: coprocessor-db-migration-docker-build
on:
pull_request:
push:
branches:
- main
release:
types:
- published
concurrency:
group: fhevm-coprocessor-db-migration-${{ github.ref_name }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
check-changes:
name: coprocessor-db-migration-docker-build/check-changes
permissions:
actions: 'read'
contents: 'read'
pull-requests: 'read'
runs-on: ubuntu-latest
outputs:
changes-coprocessor-db-migration: ${{ steps.filter.outputs.coprocessor-db-migration }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
coprocessor-db-migration:
- .github/workflows/coprocessor-db-migration-docker-build.yml
- coprocessor/fhevm-engine/db-migration/**
build:
name: coprocessor-db-migration-docker-build/build (bpr)
needs: check-changes
if: ${{ needs.check-changes.outputs.changes-coprocessor-db-migration == 'true' || github.event_name == 'release' }}
uses: zama-ai/ci-templates/.github/workflows/common-docker.yml@ef9d90453e0d776453026c751fbbd48e410d605a
secrets:
BLOCKCHAIN_ACTIONS_TOKEN: ${{ secrets.BLOCKCHAIN_ACTIONS_TOKEN }}
AWS_ACCESS_KEY_S3_USER: ${{ secrets.AWS_ACCESS_KEY_S3_USER }}
AWS_SECRET_KEY_S3_USER: ${{ secrets.AWS_SECRET_KEY_S3_USER }}
permissions:
actions: 'read'
contents: 'read'
pull-requests: 'read'
attestations: 'write'
packages: 'write'
id-token: 'write'
with:
working-directory: "."
docker-context: "."
push_image: true
image-name: "fhevm/coprocessor/db-migration"
docker-file: "coprocessor/fhevm-engine/db-migration/Dockerfile"
app-cache-dir: "fhevm-coprocessor-db-migration"