Skip to content

Commit

Permalink
ci: Revert fix merge manifest job (matter-labs#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrst88 authored Jan 8, 2024
1 parent 83fc7be commit a488dd3
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions .github/workflows/build-core-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
- snapshots-creator
platforms:
- linux/amd64
include:
- components: external-node
platforms: linux/arm64

steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
Expand Down Expand Up @@ -87,51 +84,9 @@ jobs:
PLATFORM: ${{ matrix.platforms }}
run: |
ci_run rustup default nightly-2023-08-21
ci_run zk docker $DOCKER_ACTION --platform=${PLATFORM} $COMPONENT
ci_run zk docker $DOCKER_ACTION $COMPONENT
- name: Show sccache stats
if: always()
run: |
ci_run sccache --show-stats
ci_run cat /tmp/sccache_log.txt
create_manifest:
name: Create release manifest
runs-on: matterlabs-ci-runner
needs: build-images
if: ${{ inputs.action == 'push' }}
strategy:
matrix:
component:
- name: server-v2
platform: linux/amd64
- name: external-node
platform: linux/amd64,linux/arm64
- name: contract-verifier
platform: linux/amd64
- name: cross-external-nodes-checker
platform: linux/amd64
- name: snapshots-creator
platform: linux/amd64
env:
IMAGE_TAG_SUFFIX: ${{ inputs.image_tag_suffix }}
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
- name: login to Docker registries
run: |
docker login -u ${{ secrets.DOCKERHUB_USER }} -p ${{ secrets.DOCKERHUB_TOKEN }}
gcloud auth configure-docker us-docker.pkg.dev -q
- name: Create Docker manifest
run: |
docker_repositories=("matterlabs/${{ matrix.component.name }}" "us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/${{ matrix.component.name }}")
platforms=${{ matrix.component.platform }}
for repo in "${docker_repositories[@]}"; do
repo_tags=""
for platform in ${platforms//,/ }; do
platform=$(echo $platform | tr '/' '-')
repo_tags+=" --amend ${repo}:${IMAGE_TAG_SUFFIX}-${platform}"
done
echo $repo_tags
docker manifest create ${repo}:${IMAGE_TAG_SUFFIX} ${repo_tags}
docker manifest push ${repo}:${IMAGE_TAG_SUFFIX}
done

0 comments on commit a488dd3

Please sign in to comment.