-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
28 lines (28 loc) · 1.42 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
notifications:
email: false
git:
depth: false
os: linux
arch: amd64
services:
- docker
env:
global:
- TERM=dumb
- DOCKER_USERNAME=daggerok
- DOCKER_IMAGE_NAME=jboss-eap-7.3
- secure: "Yas+0gZOHWZYIn4ce062J2SVW8/SJsWc8uggE7EGF73qp9qP2JZXy1U77Wn6FiNYYwNzmbdcYVt0L4+mzc/tSAGnl6U7YvYGSmBFmNz84DalOxGebGHVWLNiQKNMshNa5HwUcm+J1rPB7Hu9Xn41MfWZIM0duCNx92+WkYPz3ea2A5MNhk3GTAnsf23vtdXnGJw1U8a5Ibcmf80DI2H2tMFUKJ97XAtFCkBtBiWq29AVPSkMMVbNv3DZWC4zl7fKuuMKZDyQyfMSpROxsEv66+Z5BYYUSqG9m0Lqcsg7FWfMK4gHsxbD1IdPyPq15ymclBNQTQbKjfEJGFZO0zPnXihxYXfA0r+pkcnkVAKrxopp3vcFW9fuZI4RJ5B5d+5ZUmDp0kzthzPXcVXOh8aXq7YBp8a6uxC/0M6bfvgYFfeXGxgH2Im+M5SXBiKJACgDjOIbN5Szb5XckQHmxZkzAt9Lm2XnXDhxbpgHeE4kXgEQILFXw7tIMJDozXClyoOffVzJrGmqmx9+qZde7FaTjWaD4yQUkDqslRlkJWKc1noibG0KbsLRY3HaXv+A3qctIAI1NNJK26FHi/IgwvNzS2P+bD+LCMdAxat4CKEC0SyRzjAyHEffDkLv8HrDUf4HkW2/sejNe0nAAdUft9Fg+Q+0t4SASsdEBfZGKTW8Fos="
install: true
if: tag ~= debian$ OR tag ~= alpine$ OR tag ~= centos$ OR branch == master
script:
- docker system prune -af --volumes
- docker build -t ${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME} .
- echo ${DOCKER_PASSWORD} | docker login -u ${DOCKER_USERNAME} --password-stdin
- |
if [ "${TRAVIS_BRANCH}" == "master" ]; then
export IMAGE_TAG=latest
else
export IMAGE_TAG=${TRAVIS_BRANCH}
fi
- docker tag ${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME} ${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:${IMAGE_TAG}
- docker push ${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:${IMAGE_TAG}