Skip to content

Commit

Permalink
chore(*): changed image to multi arch
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Dziedziak <[email protected]>
  • Loading branch information
lukidzi committed May 27, 2022
1 parent 3e4e208 commit 220bde9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion demo-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: demo-app
image: "thefosk/kuma-demo"
image: "kumahq/kuma-demo"
env:
- name: REDIS_HOST
value: "redis.kuma-demo.svc.cluster.local"
Expand Down
2 changes: 1 addition & 1 deletion demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
spec:
containers:
- name: demo-app
image: "thefosk/kuma-demo"
image: "kumahq/kuma-demo"
env:
- name: REDIS_HOST
value: "redis.kuma-demo.svc.cluster.local"
Expand Down
17 changes: 9 additions & 8 deletions release/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,28 @@ function build_and_push() {
docker tag "${KUMA_DOCKER_REPO_ORG}/kuma-demo:${VERSION}-${arch}" "${KUMA_DOCKER_REPO_ORG}/kuma-demo:latest-${arch}"
fi
if [ $DRY_RUN != "true" ]; then
echo "Pushing kuma-demo:$KUMA_VERSION-$arch ..."
docker push "${KUMA_DOCKER_REPO_ORG}/kuma-demo:${KUMA_VERSION}-${arch}"
echo "Pushing kuma-demo:$VERSION-$arch ..."
docker push "${KUMA_DOCKER_REPO_ORG}/kuma-demo:${VERSION}-${arch}"
echo "... done!"
fi
echo "... done!"
done
if [ $DRY_RUN != "true" ]; then
images=()
for arch in ${BUILD_ARCH}; do
images+=("--amend ${KUMA_DOCKER_REPO_ORG}/kuma-demo:${KUMA_VERSION}-${arch}")
images+=("--amend ${KUMA_DOCKER_REPO_ORG}/kuma-demo:${VERSION}-${arch}")
done
command="docker manifest create ${KUMA_DOCKER_REPO_ORG}/kuma-demo:${KUMA_VERSION} ${images[*]}"
echo "Creating manifest for ${KUMA_DOCKER_REPO_ORG}/kuma-demo:${KUMA_VERSION}..."
command="docker manifest create ${KUMA_DOCKER_REPO_ORG}/kuma-demo:${VERSION} ${images[*]}"
echo "Creating manifest for ${KUMA_DOCKER_REPO_ORG}/kuma-demo:${VERSION}..."
eval "$command"
echo "Pushing manifest ${KUMA_DOCKER_REPO_ORG}/kuma-demo:${KUMA_VERSION} ..."
docker manifest push "${KUMA_DOCKER_REPO_ORG}/kuma-demo:${KUMA_VERSION}"
echo "Pushing manifest ${KUMA_DOCKER_REPO_ORG}/kuma-demo:${VERSION} ..."
docker manifest push "${KUMA_DOCKER_REPO_ORG}/kuma-demo:${VERSION}"
echo ".. done!"
fi
}

if [ $DRY_RUN != "true" ]; then
[ -z "$DOCKER_USERNAME" ] && echo "\$DOCKER_USERNAME required"
[ -z "$DOCKER_API_KEY" ] && echo "\$DOCKER_API_KEY required"
fi
build_and_push
build_and_push

0 comments on commit 220bde9

Please sign in to comment.