mirror of
https://github.com/fathyb/carbonyl.git
synced 2025-01-08 11:47:27 +08:00
23 lines
586 B
Bash
Executable File
23 lines
586 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export CARBONYL_ROOT=$(cd $(dirname -- "$0") && dirname -- "$(pwd)")
|
|
|
|
source "$CARBONYL_ROOT/scripts/env.sh"
|
|
|
|
tag="fathyb/carbonyl"
|
|
version="$1"
|
|
|
|
echo "Pushing arm64 image as $tag:$version-arm64"
|
|
docker tag "$tag:arm64" "$tag:$version-arm64"
|
|
docker push "$tag:$version-arm64"
|
|
|
|
echo "Pushing amd64 image as $tag:$version-amd64"
|
|
docker tag "$tag:amd64" "$tag:$version-amd64"
|
|
docker push "$tag:$version-amd64"
|
|
|
|
docker manifest create "$tag:$version" \
|
|
--amend "$tag:$version-arm64" \
|
|
--amend "$tag:$version-amd64"
|
|
|
|
docker manifest push "$tag:$version" --purge
|