release: add multi-arch Docker images (#2763)

This commit is contained in:
Ștefan Talpalaru 2021-08-06 20:40:07 +02:00 committed by GitHub
parent b5dd6ca11c
commit 780a9cfd42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -295,3 +295,26 @@ jobs:
macOS_arm64_archive macOS_arm64_archive
macOS_arm64_checksum macOS_arm64_checksum
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build multi-arch Docker image
run: |
REFNAME="${{ github.ref }}"
TAG="${REFNAME#refs/tags/}"
docker manifest create \
statusim/nimbus-eth2:multiarch-${TAG} \
--amend statusim/nimbus-eth2:amd64-${TAG} \
--amend statusim/nimbus-eth2:arm64-${TAG} \
--amend statusim/nimbus-eth2:arm-${TAG}
docker manifest push statusim/nimbus-eth2:multiarch-${TAG}
docker manifest create \
statusim/nimbus-eth2:multiarch-latest \
--amend statusim/nimbus-eth2:amd64-latest \
--amend statusim/nimbus-eth2:arm64-latest \
--amend statusim/nimbus-eth2:arm-latest
docker manifest push statusim/nimbus-eth2:multiarch-latest