Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eigen-client-extra-features): Merge main #387

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
2aa30ee
chore: Pin dependencies (#3424)
EmilLuta Jan 6, 2025
36559cd
chore: remove unused workflows (#3427)
otani88 Jan 6, 2025
3037ee6
feat: Features for an easier upgrade (#3422)
StanislavBreadless Jan 6, 2025
f09087b
feat: pubdata type changes from sync-layer-stable (#3425)
perekopskiy Jan 6, 2025
ab6231d
chore: create base_token_ratios_ratio_timestamp_idx index (#3411)
dimazhornyk Jan 6, 2025
0731f60
perf(eth-sender): optimize sql query (#3437)
perekopskiy Jan 7, 2025
2c778fd
feat(eth-watch): Change protocol upgrade schema (#3435)
perekopskiy Jan 7, 2025
1000f61
chore: add fflonk setup key for proof-fri-gpu-compressor (#3426)
otani88 Jan 8, 2025
591cd86
feat: da_dispatcher refactoring (#3409)
dimazhornyk Jan 8, 2025
06ba702
ci: fix gsutil command for download fflonk key for proof-fri-gpu-comp…
otani88 Jan 8, 2025
e25af90
chore: Quickfix docs for prover keys links (#3442)
EmilLuta Jan 8, 2025
7a8cb27
ci: add ghcr to list of registies (#3440)
otani88 Jan 8, 2025
ecccdda
ci: fix workflow for push prover ghcr images (#3444)
otani88 Jan 8, 2025
7adb612
refactor: rename zkstack crates with unique names for publishing (#3443)
antonbaliasnikov Jan 9, 2025
64d861d
feat: Add logging & metrics for mempool (#3447)
Artemka374 Jan 9, 2025
5a8818d
chore: re-generate zkstack-cli autocompletion (#3453)
itegulov Jan 10, 2025
361243f
feat(en): make documentation more chain agnostic (#3376)
tomg10 Jan 10, 2025
f30aca0
feat(api_server): report gas price based on open batch (#2868)
itegulov Jan 13, 2025
0efb8e6
ci: Update CUDA to 12.2 in zk-environment (#3465)
hatemosphere Jan 13, 2025
c44f7a7
ci: Hotfix condition to build CUDA 12 zk-environment Docker image
hatemosphere Jan 13, 2025
84e3e31
fix(api): Propagate fallback errors in traces (#3469)
popzxc Jan 14, 2025
006691f
fix: Zk-environment proper Nvidia driver repos (#3471)
artmakh Jan 14, 2025
e05f844
chore: pin zk foundry in zk env (#3466)
perekopskiy Jan 14, 2025
770cad8
fix: Zk-environment fix Nvidia repo add (#3472)
artmakh Jan 14, 2025
8518b3e
fix(ci): Proper GPU forwarding in docker compose (#3473)
artmakh Jan 14, 2025
c156e79
fix(zkstack): shouldn't attempt to create db on migrate command (#3468)
albertlai431 Jan 14, 2025
f06cb79
feat(contracts)!: gateway integration (#1934)
StanislavBreadless Jan 15, 2025
293617a
refactor: move Cargo.toml from root to core workspace (#3456)
antonbaliasnikov Jan 16, 2025
79f6578
refactor(vm): Deduplicate code shared with legacy VM (#3477)
slowli Jan 16, 2025
6cc9b9e
fix: eth aggregator restriction (#3490)
perekopskiy Jan 17, 2025
cbf2c31
fix(en): make EN use main node's fee input (#3489)
itegulov Jan 17, 2025
b50c973
ci: Update run_loadtest_from_github_actions (#3488)
perekopskiy Jan 17, 2025
cb5c9b7
ci: fix jobs after core workspace refactoring (#3492)
antonbaliasnikov Jan 17, 2025
e30488e
fix(ci): Fixing broken release please script after cargo files change…
tomg10 Jan 17, 2025
7463636
chore(main): release core 26.0.0 (#3407)
zksync-era-bot Jan 17, 2025
9b121c9
perf: optimize get_unsealed_l1_batch_inner (#3491)
perekopskiy Jan 17, 2025
c007aa8
use `H160` for `DEFAULT_EIGENDA_SVC_MANAGER_ADDRESS`
juan518munoz Jan 17, 2025
2e7d6cc
`parse` instead of `from_str`
juan518munoz Jan 17, 2025
405b413
replace val with shif operation
juan518munoz Jan 17, 2025
9b6fe48
replace `.map_err` with `.context`
juan518munoz Jan 17, 2025
5a144ad
remove needless parentheses
juan518munoz Jan 17, 2025
2431a0c
use `div_ceil`
juan518munoz Jan 17, 2025
a880375
remove needles `Clone` derives
juan518munoz Jan 17, 2025
801aca6
remove redundant `to_vec()`
juan518munoz Jan 17, 2025
cd4c631
use `anyhow::bail!`
juan518munoz Jan 17, 2025
68825c4
remove needless `Option` and obscuring `anyhow::Result`
juan518munoz Jan 17, 2025
e3b6f17
move verifier test to separate file
juan518munoz Jan 17, 2025
4c381a8
fix: fix execute encoding for transactions (#3501)
StanislavBreadless Jan 17, 2025
fe3c7b2
feat: update l2 erc20 bridge address in updater as well (#3500)
perekopskiy Jan 17, 2025
2bded08
replace u64 constant with Duration
juan518munoz Jan 17, 2025
12d29c7
use `ethabi::encode()`
juan518munoz Jan 17, 2025
351d5a8
refactor `decode_bytes`
juan518munoz Jan 17, 2025
d312b51
wrap `G1Affine` inside of `Box` / fix clippy
juan518munoz Jan 17, 2025
57f608e
use `SensitiveUrl` for `eigenda_eth_rpc`
juan518munoz Jan 17, 2025
1832819
refactor `save_point` fn
juan518munoz Jan 17, 2025
3a97228
remove retriable error wrapping
juan518munoz Jan 17, 2025
5c4309d
replace `PKSigningClient` for simpler L1 Client
juan518munoz Jan 17, 2025
a66e9eb
remove chain id from `EigenConfig`
juan518munoz Jan 17, 2025
d9e911c
chore: fix zkstack completion for zsh (#3495)
antonbaliasnikov Jan 20, 2025
6a0c1a6
test: make fee tests robust (#3504)
itegulov Jan 20, 2025
731b824
feat(vm): Implement call tracing for fast VM (#2905)
joonazan Jan 20, 2025
67663bf
fix(ci): Update github-hosted runner label (#3506)
artmakh Jan 20, 2025
995e583
fix: copy special case to fast VM call tracer (#3509)
joonazan Jan 20, 2025
b7618e1
chore: Localize feature import to crate for circuit prover (#3502)
tahsintunan Jan 20, 2025
c89d8c2
use temp dir for kzg points
juan518munoz Jan 20, 2025
2b896dc
fix(docker): include l1 zkout in images (#3510)
perekopskiy Jan 20, 2025
c140ba8
fix(gateway): erc20 workaround for gateway upgrade (#3511)
StanislavBreadless Jan 21, 2025
86db9ff
fix(api): use scaled version of batch fee input in `get_batch_fee_inp…
perekopskiy Jan 21, 2025
2880367
refactor `VerifierClient` trait
juan518munoz Jan 21, 2025
52de758
chore(main): release core 26.1.0 (#3499)
zksync-era-bot Jan 21, 2025
6fcecb9
ci: Remove prover-gpu-fri and witness-vector-generator from build (#3…
yorik Jan 21, 2025
5a7e533
remove `VerifierConfig`
juan518munoz Jan 21, 2025
87d5e0d
fix eigen config not initializing correctly
juan518munoz Jan 21, 2025
ab6a374
merge branch `main` into `eigen-client-extra-features`
juan518munoz Jan 21, 2025
0d40f17
build(consensus): Bump consensus version (#3512)
brunoffranca Jan 22, 2025
c3cb48c
fix/refactor mock tests
juan518munoz Jan 22, 2025
e25fe66
ci: add unified release please and crates.io publishing (#3508)
antonbaliasnikov Jan 22, 2025
516e521
fix: JSON proof serialization (#3514)
Artemka374 Jan 22, 2025
de8ad1a
remove unwraps
juan518munoz Jan 22, 2025
c476920
address comments/suggestions
juan518munoz Jan 22, 2025
4fd5944
ci: explicit nonces for upgrade test (#3517)
perekopskiy Jan 22, 2025
d64acd2
improve Error handling
juan518munoz Jan 22, 2025
01a3d7a
ci: fix nonce reuse (#3520)
itegulov Jan 23, 2025
c916797
fix(en): Fix race condition in EN storage initialization (#3515)
slowli Jan 23, 2025
4073f81
ci: fix typo in param and return to release token (#3522)
antonbaliasnikov Jan 23, 2025
709adca
Merge branch 'eigen-client-extra-features-address-comments-third' int…
juan518munoz Jan 23, 2025
3e931be
feat: Compressor optimizations (#3476)
Artemka374 Jan 23, 2025
0b1397e
create temp file inside closure
juan518munoz Jan 23, 2025
e2ae59c
Merge branch 'eigen-client-extra-features-address-comments-third' int…
juan518munoz Jan 23, 2025
d3f1faf
Merge branch 'main' into eigen-client-extra-features-merge-main
juan518munoz Jan 23, 2025
bfcd206
add EigenDA to validium init cfg
juan518munoz Jan 24, 2025
278975c
update contracts submodule
juan518munoz Jan 24, 2025
56cda84
Remove unnecessary clone
gianbelinche Jan 27, 2025
cfba485
add eigenda validator
juan518munoz Jan 27, 2025
b0b080d
address comments
juan518munoz Jan 27, 2025
efdf1b4
address comments
juan518munoz Jan 28, 2025
2587277
update yarn.lock
juan518munoz Jan 28, 2025
28de691
change `path()` fn to return `&std::path::Path`
juan518munoz Jan 28, 2025
1870c2a
replace `Path(String)` for `Path(PathBuf)`
juan518munoz Jan 28, 2025
b68a43e
Merge branch 'eigen-client-extra-features-address-comments-third' int…
juan518munoz Jan 28, 2025
51e88d3
Merge remote-tracking branch 'origin/eigen-client-extra-features' int…
juan518munoz Jan 28, 2025
b33700b
run linter
juan518munoz Jan 28, 2025
2080f16
update genesis.yaml hashes
juan518munoz Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ keys/setup
!prover/
!yarn.lock
!package.json
!Cargo.lock
!Cargo.toml
!core/Cargo.lock
!core/Cargo.toml
!contracts/
!setup_2\^26.key
!setup_2\^24.key
!setup_compact.key
# It's required to remove .git from contracts,
# otherwise yarn tries to use .git parent directory that
# doesn't exist.
Expand Down
8 changes: 3 additions & 5 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ check_fmt () {
fi
}

check_fmt

cd prover/

check_fmt
( cd core/ && check_fmt )
( cd prover/ && check_fmt )
( cd zkstack_cli/ && check_fmt )
21 changes: 11 additions & 10 deletions .github/release-please/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,27 @@
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"include-component-in-tag": true,
"release-type": "simple",
"packages": {
"core": {
"release-type": "simple",
"component": "core",
"component": "core"
},
"prover": {
"component": "prover",
"extra-files": [
{
"type": "generic",
"path": "bin/external_node/Cargo.toml"
"path": "Cargo.toml"
}
]
},
"prover": {
"release-type": "simple",
"component": "prover"
},
"zkstack_cli": {
"release-type": "simple",
"component": "zkstack_cli",
"plugins": [
"cargo-workspace"
"extra-files": [
{
"type": "generic",
"path": "Cargo.toml"
}
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"core": "25.4.0",
"core": "26.1.0",
"prover": "17.1.1",
"zkstack_cli": "0.1.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Download Setup data
run: |
gsutil -m rsync -r gs://matterlabs-setup-data-us/${{ inputs.setup_keys_id }} docker/prover-gpu-fri-gar
gsutil -m rsync -r gs://matterlabs-setup-data-us/${{ inputs.setup_keys_id }} docker/circuit-prover-gpu-gar

- name: Login to us-central1 GAR
run: |
Expand All @@ -47,32 +47,6 @@ jobs:
run: |
gcloud auth print-access-token --lifetime=7200 --impersonate-service-account=gha-ci-runners@matterlabs-infra.iam.gserviceaccount.com | docker login -u oauth2accesstoken --password-stdin https://europe-docker.pkg.dev

- name: Build and push prover-gpu-fri-gar
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: docker/prover-gpu-fri-gar
build-args: |
PROVER_IMAGE=${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}
push: true
tags: |
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}

- name: Build and push prover-gpu-fri-gar to Asia GAR
run: |
docker buildx imagetools create \
--tag asia-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }} \
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}

- name: Build and push prover-gpu-fri-gar to Europe GAR
run: |
docker buildx imagetools create \
--tag europe-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }} \
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}

- name: Move Setup data from prover-gpu-fri-gar to circuit-prover-gpu-gar
run: |
mv -v docker/prover-gpu-fri-gar/*.bin docker/circuit-prover-gpu-gar/

- name: Build and push circuit-prover-gpu-gar
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
Expand Down
217 changes: 156 additions & 61 deletions .github/workflows/build-contract-verifier-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,37 @@ on:
description: "Optional suffix to override tag name generation"
type: string
required: false
action:
description: "Action with docker image"
type: string
default: "push"
required: false
compilers:
description: 'JSON of required compilers and their versions'
type: string
required: false
default: '[{ "zksolc": ["1.3.14", "1.3.16", "1.3.17", "1.3.1", "1.3.7", "1.3.18", "1.3.19", "1.3.21"] } , { "zkvyper": ["1.3.13"] }]'
jobs:
build-images:
name: Build and Push Docker Images
env:
IMAGE_TAG_SUFFIX: ${{ inputs.image_tag_suffix }}
runs-on: ${{ fromJSON('["matterlabs-ci-runner-high-performance", "matterlabs-ci-runner-arm"]')[contains(matrix.platforms, 'arm')] }}
strategy:
matrix:
components:
- contract-verifier
- verified-sources-fetcher
platforms:
- linux/amd64
action:
type: string
default: non-push
required: false

jobs:
prepare-contracts:
name: Prepare contracts
runs-on: matterlabs-ci-runner-high-performance
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: "recursive"

- name: setup-env
- name: Prepare ENV
shell: bash
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo CI=1 >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
echo $HOME/.local/bin >> $GITHUB_PATH
echo CI=1 >> .env
echo IN_DOCKER=1 >> .env

- name: Download contracts
shell: bash
run: |
commit_sha=$(git submodule status contracts | awk '{print $1}' | tr -d '-')
page=1
Expand Down Expand Up @@ -80,8 +73,41 @@ jobs:
tar -C ./contracts -zxf l2-contracts.tar.gz
tar -C ./contracts -zxf system-contracts.tar.gz

- name: pre-download compilers
- name: Install Apt dependencies
if: env.BUILD_CONTRACTS == 'true'
shell: bash
run: |
sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config

- name: Install Node
if: env.BUILD_CONTRACTS == 'true'
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 20
cache: 'npm'

- name: Install Yarn
if: env.BUILD_CONTRACTS == 'true'
run: npm install -g yarn

- name: Setup rust
if: env.BUILD_CONTRACTS == 'true'
uses: actions-rust-lang/setup-rust-toolchain@1fbea72663f6d4c03efaab13560c8a24cfd2a7cc # v1.9.0
with:
toolchain: nightly-2024-08-01

- name: Install foundry-zksync
if: env.BUILD_CONTRACTS == 'true'
run: |
mkdir ./foundry-zksync
curl -LO https://github.com/matter-labs/foundry-zksync/releases/download/nightly-27360d4c8d12beddbb730dae07ad33a206b38f4b/foundry_nightly_linux_amd64.tar.gz
tar zxf foundry_nightly_linux_amd64.tar.gz -C ./foundry-zksync
chmod +x ./foundry-zksync/forge ./foundry-zksync/cast
echo "$PWD/foundry-zksync" >> $GITHUB_PATH

- name: Pre-download compilers
if: env.BUILD_CONTRACTS == 'true'
shell: bash
run: |
# Download needed versions of vyper compiler
# Not sanitized due to unconventional path and tags
Expand All @@ -98,59 +124,128 @@ jobs:
chmod +x "./hardhat-nodejs/compilers-v2/$compiler/${compiler}-v${version}"
done

- name: start-services
- name: Install zkstack
if: env.BUILD_CONTRACTS == 'true'
run: |
./zkstack_cli/zkstackup/install --path ./zkstack_cli/zkstackup/zkstackup
zkstackup --local || true

- name: build contracts
if: env.BUILD_CONTRACTS == 'true'
shell: bash
run: |
echo "IMAGE_TAG_SUFFIX=${{ env.IMAGE_TAG_SUFFIX }}" >> .env
run_retried docker compose pull zk postgres
docker compose up -d zk postgres
ci_run pre_download_compilers.sh
ci_run sccache --start-server
cp etc/tokens/{test,localhost}.json
zkstack dev contracts

- name: init
- name: Upload contracts
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: contacts-verifier
path: |
./contracts

build-images:
name: Build and Push Docker Images
needs: prepare-contracts
permissions:
packages: write
contents: read
runs-on: ${{ fromJSON('["matterlabs-ci-runner-high-performance", "matterlabs-ci-runner-arm"]')[contains(matrix.platforms, 'arm')] }}
strategy:
matrix:
components:
- contract-verifier
- verified-sources-fetcher
platforms:
- linux/amd64

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: "recursive"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: Setup env
shell: bash
run: |
ci_run git config --global --add safe.directory /usr/src/zksync
ci_run git config --global --add safe.directory /usr/src/zksync/sdk/binaryen
ci_run git config --global --add safe.directory /usr/src/zksync/contracts/system-contracts
ci_run git config --global --add safe.directory /usr/src/zksync/contracts
ci_run ./bin/zk || true
ci_run run_retried curl -LO https://storage.googleapis.com/matterlabs-setup-keys-us/setup-keys/setup_2\^26.key

- name: install zkstack
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo CI=1 >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
echo CI=1 >> .env
echo IN_DOCKER=1 >> .env

- name: Download setup key
shell: bash
run: |
ci_run ./zkstack_cli/zkstackup/install -g --path ./zkstack_cli/zkstackup/zkstackup || true
ci_run zkstackup -g --local
if [ -f "/setup_2^26.key" ]; then
cp '/setup_2^26.key' './setup_2^26.key'
else
run_retried curl -LO https://storage.googleapis.com/matterlabs-setup-keys-us/setup-keys/setup_2\^26.key
fi

- name: build contracts
if: env.BUILD_CONTRACTS == 'true'
- name: Set env vars
shell: bash
run: |
ci_run cp etc/tokens/{test,localhost}.json
ci_run zkstack dev contracts
echo PLATFORM=$(echo ${{ matrix.platforms }} | tr '/' '-') >> $GITHUB_ENV
echo IMAGE_TAG_SHA=$(git rev-parse --short HEAD) >> $GITHUB_ENV
# Support for custom tag suffix
if [ -n "${{ inputs.image_tag_suffix }}" ]; then
echo IMAGE_TAG_SHA_TS="${{ inputs.image_tag_suffix }}" >> $GITHUB_ENV
else
echo IMAGE_TAG_SHA_TS=$(git rev-parse --short HEAD)-$(date +%s) >> $GITHUB_ENV
fi

- name: Login to Docker registries
- name: Download contracts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: contacts-verifier
path: |
./contracts

- name: login to Docker registries
if: ${{ inputs.action == 'push' }}
shell: bash
run: |
ci_run docker login -u ${{ secrets.DOCKERHUB_USER }} -p ${{ secrets.DOCKERHUB_TOKEN }}
ci_run gcloud auth configure-docker us-docker.pkg.dev -q

- name: update-images
env:
DOCKER_ACTION: ${{ inputs.action }}
COMPONENT: ${{ matrix.components }}
PLATFORM: ${{ matrix.platforms }}
run: |
ci_run run_retried rustup default nightly-2024-05-07
platform=$(echo $PLATFORM | tr '/' '-')
ci_run zk docker $DOCKER_ACTION --custom-tag=${IMAGE_TAG_SUFFIX} --platform=${PLATFORM} $COMPONENT
- name: Show sccache stats
if: always()
docker login -u ${{ secrets.DOCKERHUB_USER }} -p ${{ secrets.DOCKERHUB_TOKEN }}
gcloud auth configure-docker us-docker.pkg.dev -q

- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
if: ${{ inputs.action == 'push' }}
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: .
load: true
platforms: ${{ matrix.platforms }}
file: docker/${{ matrix.components }}/Dockerfile
build-args: |
SCCACHE_GCS_BUCKET=matterlabs-infra-sccache-storage
SCCACHE_GCS_SERVICE_ACCOUNT=gha-ci-runners@matterlabs-infra.iam.gserviceaccount.com
SCCACHE_GCS_RW_MODE=READ_WRITE
RUSTC_WRAPPER=sccache
tags: |
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/${{ matrix.components }}:${{ env.IMAGE_TAG_SHA_TS }}-${{ env.PLATFORM }}
matterlabs/${{ matrix.components }}:${{ env.IMAGE_TAG_SHA_TS }}-${{ env.PLATFORM }}
ghcr.io/${{ github.repository_owner }}/${{ matrix.components }}:${{ env.IMAGE_TAG_SHA_TS }}-${{ env.PLATFORM }}

- name: Push docker image
if: ${{ inputs.action == 'push' }}
run: |
ci_run sccache --show-stats || true
ci_run cat /tmp/sccache_log.txt || true
docker push us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/${{ matrix.components }}:${{ env.IMAGE_TAG_SHA_TS }}-${{ env.PLATFORM }}
docker push matterlabs/${{ matrix.components }}:${{ env.IMAGE_TAG_SHA_TS }}-${{ env.PLATFORM }}
docker push ghcr.io/${{ github.repository_owner }}/${{ matrix.components }}:${{ env.IMAGE_TAG_SHA_TS }}-${{ env.PLATFORM }}

create_manifest:
name: Create release manifest
# TODO: After migraton switch to CI
runs-on: matterlabs-default-infra-runners
runs-on: matterlabs-ci-runner
needs: build-images
if: ${{ inputs.action == 'push' }}
strategy:
Expand Down
Loading
Loading