From 44b4d29eca1909a799c90393687c4b7cc1889c79 Mon Sep 17 00:00:00 2001 From: 0xawaz Date: Mon, 25 Nov 2024 14:04:08 +0100 Subject: [PATCH] build: add db-migration docker image --- .github/workflows/fhevm-db-migration.yml | 46 ++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/fhevm-db-migration.yml diff --git a/.github/workflows/fhevm-db-migration.yml b/.github/workflows/fhevm-db-migration.yml new file mode 100644 index 00000000..9c5798de --- /dev/null +++ b/.github/workflows/fhevm-db-migration.yml @@ -0,0 +1,46 @@ +name: "fhEVM DB migtaion Docker Image" + +on: + push: + branches: + - main + - ci/db-migration + paths: + - .github/workflows/fhevm-coprocessor.yml + - .github/workflows/common-docker.yml + - fhevm-engine/fhevm-db/** + release: + types: + - published + +concurrency: + group: fhevm-coprocessor-${{ github.ref_name }} + cancel-in-progress: false + +jobs: + docker-coprocessor: + uses: ./.github/workflows/common-docker.yml + permissions: + contents: "read" + id-token: "write" + packages: "write" + with: + working-directory: "." + push_image: ${{ github.event_name == 'release' || github.ref_name == 'main' }} + image-name: "fhevm-db-migration" + generate-dev-image: false + docker-file: "fhevm-engine/fhevm-db/Dockerfile" + arm-build: true + + secrets: + BLOCKCHAIN_ACTIONS_TOKEN: ${{ secrets.BLOCKCHAIN_ACTIONS_TOKEN }} + GRAVITON_BUILDER_SSH_PRIVATE_KEY: ${{ secrets.GRAVITON_BUILDER_SSH_PRIVATE_KEY }} + + done: + runs-on: ubuntu-latest + name: Pipeline Done + steps: + - name: Success + run: echo Pipeline Done + needs: + - docker-coprocessor