Skip to content
Permalink
Browse files

Push multi-arch image for watchdog

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
  • Loading branch information...
alexellis committed May 26, 2019
1 parent edf5396 commit a03196342d8085eb25e846a3e3044637646895c4
Showing with 22 additions and 0 deletions.
  1. +4 −0 .travis.yml
  2. +1 −0 watchdog/build.sh
  3. +17 −0 watchdog/make_manifest.sh
@@ -46,6 +46,10 @@ after_success:
docker tag $DOCKER_NS/classic-watchdog:latest-dev-arm64 quay.io/$DOCKER_NS/classic-watchdog:$TRAVIS_TAG-arm64;
docker tag $DOCKER_NS/classic-watchdog:latest-dev-windows quay.io/$DOCKER_NS/classic-watchdog:$TRAVIS_TAG-windows;
docker tag $DOCKER_NS/classic-watchdog:latest-dev-x86_64 quay.io/$DOCKER_NS/classic-watchdog:$TRAVIS_TAG-x86_64;

./watchdog/make_manifest.sh
docker push $DOCKER_NS/classic-watchdog:$TRAVIS_TAG

echo $QUAY_PASSWORD | docker login -u=$QUAY_USERNAME --password-stdin quay.io;
docker push quay.io/$DOCKER_NS/classic-watchdog:$TRAVIS_TAG-armhf;
docker push quay.io/$DOCKER_NS/classic-watchdog:$TRAVIS_TAG-arm64;
@@ -35,3 +35,4 @@ docker cp buildoutput:/go/src/github.com/openfaas/faas/watchdog/watchdog-arm64 .
docker cp buildoutput:/go/src/github.com/openfaas/faas/watchdog/watchdog.exe ./fwatchdog.exe

docker rm buildoutput

@@ -0,0 +1,17 @@
#!/bin/bash

export USR=$DOCKER_NS
export TAG=$TRAVIS_TAG

docker manifest create $USR/classic-watchdog:$TAG \
openfaas/classic-watchdog:$TAG-x86_64 \
openfaas/classic-watchdog:$TAG-armhf \
openfaas/classic-watchdog:$TAG-arm64 \
openfaas/classic-watchdog:$TAG-windows

docker manifest annotate $USR/classic-watchdog:$TAG --arch arm openfaas/classic-watchdog:$TAG-armhf
docker manifest annotate $USR/classic-watchdog:$TAG --arch arm64 openfaas/classic-watchdog:$TAG-arm64
docker manifest annotate $USR/classic-watchdog:$TAG --os windows openfaas/classic-watchdog:$TAG-windows

docker manifest push $USR/classic-watchdog:$TAG

0 comments on commit a031963

Please sign in to comment.
You can’t perform that action at this time.