Push multi-arch image for watchdog

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis 2019-05-26 19:51:06 +01:00
parent edf53966ab
commit a03196342d
3 changed files with 22 additions and 0 deletions

View File

@ -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;

View File

@ -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

17
watchdog/make_manifest.sh Executable file
View File

@ -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