mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 05:20:02 +08:00
Add travis build
This commit is contained in:
parent
a8e258e5e2
commit
b54671a9d5
15
.travis.yml
Normal file
15
.travis.yml
Normal 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
.travis/deploy-docker-hub
Executable file
10
.travis/deploy-docker-hub
Executable 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
|
Loading…
x
Reference in New Issue
Block a user