Skip to content

Commit

Permalink
Update the Docker tag to openfaas
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Apr 9, 2020
1 parent 72f341f commit 02909f7
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ TAG?=latest
export DOCKER_CLI_EXPERIMENTAL=enabled

build:
docker build -t openfaas-incubator/mqtt-connector:$(TAG)-amd64 . -f Dockerfile
docker build --build-arg OPTS="GOARCH=arm64" -t openfaas-incubator/mqtt-connector:$(TAG)-arm64 . -f Dockerfile
docker build --build-arg OPTS="GOARCH=arm GOARM=6" -t openfaas-incubator/mqtt-connector:$(TAG)-armhf . -f Dockerfile
docker build -t openfaas/mqtt-connector:$(TAG)-amd64 . -f Dockerfile
docker build --build-arg OPTS="GOARCH=arm64" -t openfaas/mqtt-connector:$(TAG)-arm64 . -f Dockerfile
docker build --build-arg OPTS="GOARCH=arm GOARM=6" -t openfaas/mqtt-connector:$(TAG)-armhf . -f Dockerfile

push:
docker push openfaas-incubator/mqtt-connector:$(TAG)-amd64
docker push openfaas-incubator/mqtt-connector:$(TAG)-arm64
docker push openfaas-incubator/mqtt-connector:$(TAG)-armhf
docker push openfaas/mqtt-connector:$(TAG)-amd64
docker push openfaas/mqtt-connector:$(TAG)-arm64
docker push openfaas/mqtt-connector:$(TAG)-armhf

manifest:
docker manifest create --amend openfaas-incubator/mqtt-connector:$(TAG) \
openfaas-incubator/mqtt-connector:$(TAG)-amd64 \
openfaas-incubator/mqtt-connector:$(TAG)-arm64 \
openfaas-incubator/mqtt-connector:$(TAG)-armhf
docker manifest annotate openfaas-incubator/mqtt-connector:$(TAG) openfaas-incubator/mqtt-connector:$(TAG)-arm64 --os linux --arch arm64
docker manifest annotate openfaas-incubator/mqtt-connector:$(TAG) openfaas-incubator/mqtt-connector:$(TAG)-armhf --os linux --arch arm --variant v6
docker manifest push -p openfaas-incubator/mqtt-connector:$(TAG)
docker manifest create --amend openfaas/mqtt-connector:$(TAG) \
openfaas/mqtt-connector:$(TAG)-amd64 \
openfaas/mqtt-connector:$(TAG)-arm64 \
openfaas/mqtt-connector:$(TAG)-armhf
docker manifest annotate openfaas/mqtt-connector:$(TAG) openfaas/mqtt-connector:$(TAG)-arm64 --os linux --arch arm64
docker manifest annotate openfaas/mqtt-connector:$(TAG) openfaas/mqtt-connector:$(TAG)-armhf --os linux --arch arm --variant v6
docker manifest push -p openfaas/mqtt-connector:$(TAG)

test:
go test ./...
Expand Down

0 comments on commit 02909f7

Please sign in to comment.