-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d9d1b7
commit e0a046e
Showing
4 changed files
with
41 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
#jq '.manifests[] | select(.platform.architecture == "amd64").digest' | ||
|
||
image_suffix=(base dev prod prod-rs) | ||
archs=(amd64 arm64) | ||
gst_version=1.22.8 | ||
|
||
for suffix in ${image_suffix[*]} | ||
do | ||
digests=() | ||
for arch in ${archs[*]} | ||
do | ||
#docker manifest inspect livekit/gstreamer:$gst_version-$suffix-$arch | jq ".manifests[] | select(.platform.architecture == \"$arch\").digest" | ||
digest=`docker manifest inspect livekit/gstreamer:$gst_version-$suffix-$arch | jq ".manifests[] | select(.platform.architecture == \"$arch\").digest"` | ||
# remove quotes | ||
digest=${digest:1:$[${#digest}-2]} | ||
digests+=($digest) | ||
done | ||
|
||
manifests="" | ||
for digest in ${digests[*]} | ||
do | ||
manifests+=" livekit/gstreamer@$digest" | ||
done | ||
|
||
docker manifest create livekit/gstreamer:$gst_version-$suffix$manifests | ||
docker manifest push livekit/gstreamer:$gst_version-$suffix | ||
done | ||
|