Add travis build

This commit is contained in:
Josh Kunz
2019-03-12 23:40:53 -07:00
parent a8e258e5e2
commit b54671a9d5
2 changed files with 25 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
language: minimal
env:
- IMAGE_NAME=jkz0/qemu
services:
- docker
script: docker build -t $IMAGE_NAME .
deploy:
provider: script
script: .travis/deploy-docker-hub
on:
tags: true
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -x
set -e
echo $DOCKER_HUB_PASSWORD | docker login -u $DOCKER_HUB_USER --password-stdin
docker tag $IMAGE_NAME $IMAGE_NAME:latest
docker tag $IMAGE_NAME $IMAGE_NAME:$TRAVIS_TAG
docker push $IMAGE_NAME:latest
docker push $IMAGE_NAME:$TRAVIS_TAG