mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Push multi-arch image for watchdog
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
edf53966ab
commit
a03196342d
@ -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
|
||||
|
||||
|
17
watchdog/make_manifest.sh
Executable file
17
watchdog/make_manifest.sh
Executable 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user