Skip to content

Commit

Permalink
fix: add docker manifest push
Browse files Browse the repository at this point in the history
  • Loading branch information
kvendingoldo committed Jul 25, 2024
1 parent 66e0082 commit 03debc9
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,26 @@ jobs:
for arch in "${architectures[@]}"; do
for version in "${versions[@]}"; do
IMAGE="${docker_registry}/tofuutils/tenv:${version}-${arch}"
echo "Pushing ${IMAGE} ..."
echo "Pushing image ${IMAGE} ..."
docker push ${IMAGE}
#docker manifest push ${IMAGE}
if [ ${?} -ne 0 ]; then
echo "Failed to push ${IMAGE}"
echo "Failed to push image ${IMAGE}"
exit 1
fi
done
done
echo "All images pushed successfully to ${docker_registry}!"
for version in "${versions[@]}"; do
IMAGE="${docker_registry}/tofuutils/tenv:${version}"
echo "Pushing manifest ${IMAGE} ..."
docker manifest push ${IMAGE}
if [ ${?} -ne 0 ]; then
echo "Failed to push manifest ${IMAGE}"
exit 1
fi
done
echo "All images and manifests pushed successfully to ${docker_registry}!"
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -125,16 +132,23 @@ jobs:
for arch in "${architectures[@]}"; do
for version in "${versions[@]}"; do
IMAGE="${docker_registry}/tofuutils/tenv:${version}-${arch}"
echo "Pushing ${IMAGE} ..."
echo "Pushing image ${IMAGE} ..."
docker push ${IMAGE}
#docker manifest push ${IMAGE}
if [ ${?} -ne 0 ]; then
echo "Failed to push ${IMAGE}"
echo "Failed to push image ${IMAGE}"
exit 1
fi
done
done
echo "All images pushed successfully to ${docker_registry}!"
for version in "${versions[@]}"; do
IMAGE="${docker_registry}/tofuutils/tenv:${version}"
echo "Pushing manifest ${IMAGE} ..."
docker manifest push ${IMAGE}
if [ ${?} -ne 0 ]; then
echo "Failed to push manifest ${IMAGE}"
exit 1
fi
done
echo "All images and manifests pushed successfully to ${docker_registry}!"

0 comments on commit 03debc9

Please sign in to comment.