-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (38 loc) · 3.31 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: java
sudo: required
addons:
ulimit:
nofile: 1048576
before_install:
- curl -nfsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
script: "./gradlew clean test jar"
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: VPthSAA9qZVz0IJi3JTpCmThWsE1/zgaYhw9nKeHJV2m+i8htNGh1otIgd6yWp4LFYAGVwfoIQxLvNF85jBXrjSReo/8MS/amoqVtFrLp4HzVBVWeU4ZbIfMLa3LK+Vlkd6qT8iphW7Tpq+r6Ka3G8eJLY9E9uoGsVIHfQ71OVF9plciXMMXD9DFWXfIIAaJIwM9+L7ymHIS1WjhEcsE+zg1CJxbQ25KGcG2oGn1vJOtf+bxpYqAilRLSL0/l5zTkZT5LzJhKFAJIytbyGQVp2+PqZvpVs4P51BsRjWwuNjWsLqbpiO8SOIjuGR665RzbqQH0I063CWx0qecMH8HneXePzUpo6jlJKm6awOZPq6OAkMhtRQ70eMgawaD3CMKLgX+WnkYPlUS5s3oPX3U8AHVjqqrB1uIDlnTead6vrd0Kegw7L13USN+M374MfLe4OpTyfxchhW/anTqB5J/UNkOF+6ARKNCX7FTiZ7CPr7bpp7JAke6wf4xcxQvozFSXe7kXjPID+4d4ysscoBZdqhrsTGNl5MVA+kHREroC6Pyb4BoZQ8gdWDni3+Qxp+KHUCFa61/pIZjt4yLHzgWoM9rMIdwkamGEc2vsn5256eXjDCtK3jXEEHEqRw3Acu0akTMHAATNpKLUwdNLUcGRgqTLtd+Fq1Jq0cAP+mfHt8=
file: "./build/libs/mongoose-storage-driver-nfs.jar"
on:
tags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anIQUGp7JiZzVFenj3XL8nI5CL/nfr6GGF2IyLBnsimRgrfB8gWgdKLBjjSBRtZy2Ip62vNG65n6bBubDdHqPPVVPYW0zlbsSKvHpWY93Z541H3BABibn7B3PdoY1i+Kc/2uE6XPMckD4YQuqrmmymldtvc7Kdis2tiVGc2IiNkzUTVorPxnHYWvmBrUgreOpYIPYsi96raj1Ew6UQnCkm5jmf3nIDcF4x5/Ja/zhS5ThhxFMmCEd5AODShw1J/I9J8czxptam0OacUhot15xziieJMrh6CktaL5xg2gj0ab/zS53LTj/vs4cRHqkaTMDh2A1qC3yqGXRwOU8U="
after_success:
- echo $DOCKER_PASS
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=emcmongoose/mongoose-storage-driver-nfs
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH; fi`
- docker build --build-arg MONGOOSE_VERSION=next -f docker/Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
- export REPO=emcmongoose/mongoose-storage-driver-nfs-service
- docker build --build-arg MONGOOSE_VERSION=next -f docker/Dockerfile.storage-driver-service -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO