-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathgateway-contracts-docker-build.yml
More file actions
62 lines (58 loc) · 2 KB
/
gateway-contracts-docker-build.yml
File metadata and controls
62 lines (58 loc) · 2 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
name: Docker - Fhevm Gateway Contracts
on:
pull_request:
push:
branches:
- main
release:
types:
- published
concurrency:
group: gateway-contracts-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
check-changes:
permissions:
actions: 'read'
contents: 'read'
pull-requests: 'read'
runs-on: ubuntu-latest
outputs:
changes-gw-contracts: ${{ steps.filter.outputs.gw-contracts }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
gw-contracts:
- .github/workflows/gateway-contracts-docker-build.yml
- gateway-contracts/contracts/**
- gateway-contracts/tasks/**
- gateway-contracts/package*.json
- gateway-contracts/hardhat.config.ts
- gateway-contracts/tsconfig.json
- gateway-contracts/Dockerfile
docker-gateway-contracts:
needs: check-changes
if: ${{ needs.check-changes.outputs.changes-gw-contracts == 'true' || github.event_name == 'release' }}
uses: zama-ai/ci-templates/.github/workflows/docker_common.yml@44333c96991d6747e0bef6a3308bfd98b20390f8 # main
secrets:
GHCR_ACTION_TOKEN: ${{ secrets.BLOCKCHAIN_ACTIONS_TOKEN }}
GRAVITON_BUILDER_SSH_PRIVATE_KEY: ${{ secrets.GRAVITON_BUILDER_SSH_PRIVATE_KEY }}
permissions:
contents: "read"
id-token: "write"
packages: "write"
with:
working-directory: "gateway-contracts"
docker-context: "gateway-contracts"
push_image: true
image-name: "fhevm/gateway-contracts"
docker-file: "Dockerfile"
arm-build: true
docker-hardhat-test:
needs: docker-gateway-contracts
uses: ./.github/workflows/gateway-contracts-hardhat-tests-docker.yml
with:
image-name: ${{ needs.docker-gateway-contracts.outputs.image_name }}