Update .travis.yml

pull/115/merge
morpheus65535 7 years ago committed by GitHub
parent 2f81c4c5b1
commit 75cf2c4953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,6 +18,6 @@ script:
- docker build -t $REPO:$COMMIT-$ARCH -f Dockerfile.$ARCH . - docker build -t $REPO:$COMMIT-$ARCH -f Dockerfile.$ARCH .
after_success: after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS - docker login -u $DOCKER_USER -p $DOCKER_PASS
- if [ "$ARCH" == "amd64" ]; then docker tag $REPO:$COMMIT $REPO:latest; fi - if [ "$ARCH" == "amd64" ]; then docker tag $REPO:$COMMIT-$ARCH $REPO:latest; fi
- docker tag $REPO:$COMMIT-$ARCH $REPO:$ARCH-latest - docker tag $REPO:$COMMIT-$ARCH $REPO:$ARCH-latest
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then docker push $REPO; fi - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then docker push $REPO; fi

Loading…
Cancel
Save