File tree Expand file tree Collapse file tree
coprocessor/fhevm-engine/fhevm-db Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,19 +34,22 @@ jobs:
3434 docker-fhevm-db-migration :
3535 needs : check-changes
3636 if : ${{ needs.check-changes.outputs.changes-db-migration-files == 'true' || github.event_name == 'release' }}
37- uses : zama-ai/ci-templates/.github/workflows/docker_common .yml@44333c96991d6747e0bef6a3308bfd98b20390f8 # main
37+ uses : zama-ai/ci-templates/.github/workflows/common-docker .yml@ef9d90453e0d776453026c751fbbd48e410d605a
3838 secrets :
39- GHCR_ACTION_TOKEN : ${{ secrets.BLOCKCHAIN_ACTIONS_TOKEN }}
40- GRAVITON_BUILDER_SSH_PRIVATE_KEY : ${{ secrets.GRAVITON_BUILDER_SSH_PRIVATE_KEY }}
39+ BLOCKCHAIN_ACTIONS_TOKEN : ${{ secrets.BLOCKCHAIN_ACTIONS_TOKEN }}
40+ AWS_ACCESS_KEY_S3_USER : ${{ secrets.AWS_ACCESS_KEY_S3_USER }}
41+ AWS_SECRET_KEY_S3_USER : ${{ secrets.AWS_SECRET_KEY_S3_USER }}
4142 permissions :
42- contents : " read"
43- id-token : " write"
44- packages : " write"
43+ actions : ' read'
44+ contents : ' read'
45+ pull-requests : ' read'
46+ attestations : ' write'
47+ packages : ' write'
48+ id-token : ' write'
4549 with :
4650 working-directory : " coprocessor"
4751 docker-context : " coprocessor"
4852 push_image : true
4953 image-name : " fhevm/coprocessor/db-migration"
50- generate-dev-image : false
51- docker-file : " fhevm-engine/fhevm-db/Dockerfile"
52- arm-build : true
54+ docker-file : " ./coprocessor/fhevm-engine/fhevm-db/Dockerfile"
55+ app-cache-dir : ' fhevm-coprocessor-db-migration'
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ COPY proto/ /proto/
1212
1313WORKDIR /fhevm-engine
1414# Build utils binary
15- # Currently, this utils is used only for keys converting.
15+ # Currently, this utils is used only for keys converting.
1616# Later on, it will be extended to replace initialize_db.sh completely
1717RUN cargo fetch && \
1818 SQLX_OFFLINE=true cargo build --release -p coprocessor --bin utils
1919
20- FROM rust:1.85.0-bookworm AS final
20+ FROM rust:1.85.0-bookworm AS prod
2121
2222# Install required runtime dependencies only
2323RUN apt-get update && \
@@ -41,3 +41,5 @@ USER zama:zama
4141
4242# Run the initialization script as the entrypoint
4343ENTRYPOINT ["/bin/bash" , "/initialize_db.sh" ]
44+
45+ FROM prod AS dev
You can’t perform that action at this time.
0 commit comments