This commit is contained in:
Your Name
2018-02-16 00:58:36 +03:00
parent 6bd16ded60
commit 7ee0cfadc7
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -4,7 +4,8 @@ services:
env:
global:
- IMAGE_NAME=$DOCKER_USERNAME/aqara-mqtt
- PROJECT=aqara-mqtt
- IMAGE_NAME=$DOCKER_USERNAME/$PROJECT
jobs:
include:
@@ -18,7 +19,7 @@ jobs:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
# build
- docker build -t $IMAGE_NAME -f Dockerfile-$ARCH .
- docker build -t $PROJECT -f Dockerfile-$ARCH .
# push image
- >
@@ -26,6 +27,6 @@ jobs:
docker images
echo $IMAGE_NAME
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
docker tag $IMAGE_NAME $IMAGE_NAME:$VERSION-$ARCH
docker tag $PROJECT $IMAGE_NAME:$VERSION-$ARCH
docker push $IMAGE_NAME:$VERSION-$ARCH
fi