Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

CI/CD: Fix issue with latest docker buildx version (#917)

Rich Turnera33bacdab229
diff --git a/.ci_cd/deploy.sh b/.ci_cd/deploy.sh
index 9377ac52a..cd1cebbd7 100644
--- a/.ci_cd/deploy.sh
+++ b/.ci_cd/deploy.sh
@@ -143,7 +143,7 @@ PLATFORM="linux/$PLATFORM"
# Verify manager tag and create docker image tarballs as required
if [ "$MANAGER_TAG" != '#ref' ]; then
- docker manifest inspect openremote/manager:$MANAGER_TAG > /dev/null 2> /dev/null
+ docker buildx imagetools inspect --raw openremote/manager:$MANAGER_TAG > /dev/null 2> /dev/null
if [ $? -ne 0 ]; then
echo "Specified manager tag does not exist in docker hub"
revoke_ssh
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index d92b7d4a7..66fdfd52c 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -289,7 +289,7 @@ jobs:
for key in managerPushConfig.keys():
# Output new tag cache files (for generating hash)
os.system(f"echo 'Outputting manifest info for tag: {key}'")
- os.system(f"docker manifest inspect openremote/manager:{key} > ~/manager-tags-new/{key}")
+ os.system(f"docker buildx imagetools inspect --raw openremote/manager:{key} > ~/manager-tags-new/{key}")
os.system("echo 'Tag manifests generated:'")
os.system("find ~/manager-tags-new")
env: