-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
23 lines (23 loc) · 1.84 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
os: linux
dist: xenial
services:
- docker
env:
global:
- IMAGE_NAME=pegasystems/mock-web-service
- VERSION=0.0.8
- secure: ZiBXW6HeZDWTukdDZ2kaOdwD26t+/xZ5xqqVYXPzXkyidgdbzBagjLht7z8ZG2noGeCNkGbbYqM0AHZJ1TZmNZBz2LBWtYHg0+TJ5VwKNLEBBTOb38edJO+CKEA9H79BHfZmBoJiWkw7l4RIwo3TJOk181d4FrWY5UWH6f65z3diwZUSpaVaLBFUGrvTzCXql38ppI5XVHM7VmUbPBjHU/ZRrDYCVRMd1ROG7hli+q/CFP2WFzeT6cI5/+7ctPiKw9ZdrFazgfGG/2nDDAD9b6tC2nkUTQ2sX/XbxiuQIjspPDA2GVBCWvzDy0v9qlS3UBNmd1QnJaY54QtHM7nVQpwPzzHoNeCt/ZffroIOO1ERmXoy68+MioPxGRaGNAJemz+iGS1g8dYG/K+0hnc+1aTtcRkHF9Z4GEpDTE4CIBPLKQCNC59EkQ+mkIz3XuoCZMZpy+YLk1Wfvfp2fZ/tsr6K+nPXDi6Q7v8OG68YdV6XKwGJpTzWrnTuVAps1Bj+2moO9mBP4/x4BJEpVakuQwsz2sfLuCSmACV0KUdSLHAxiUCdDziqmH8M9YpBKxFq9J0jhzDEA9R7PhW0D3dEsf9coSIqh7rKahpxC1G4yLazMqQlzbn/seshXWVGp9XSw2yNAALhVB4U0uZJNXc4zVmh1uGdLirkL1UlIATkpUw=
- secure: s3eac74KFN8KqMI7F/s4yFfyFgvwW5ZgbrgRc7hLqFzncBmKx6Yy7j6bmDpLXNNUQ6S6NbMV+MfdMlG005EVvITW7fXBVIWwdrjk0Ev9tuGd+IgtL6hfBAF7t13vTi0wjB/344+yJ3jHqdbfW/J9wlANyWb2xWfx1kTgrGShhF8H1Bna54PJASEF3xcv93QrX32m7+pvVp84H+ur/oZeT+kJPSy2Lt2Me/wIADsH67lsn4Kn1YxLihjtZthxeuiyU54Hl+7BgrnjKvAw8f65OT4UWbLcCEaEeFWebfbu8GHQueOqMWsM++mlwhssVKLAAskc7dU+yacrht0Y1kLQBfHPKR9gu+MZCNfsRKGG00iKI4oDGkr0CilqAWpISHHD6n3zSPcXWvB0c4i30K9Rtf0MvuVhX7GTFkKUVsZsogaBuVQS3ifO8eMEqXx8GkI9hs59hbEFtIr/bqXLCWNWUGwoIHIQTWRfoToTDmKxj/1vtuAoq+BCstmkyyLz7agbQpN4uTmbgbsXwP4Yq4qmYJjKnjIAYpAXviF9YQRKIut0+evynkbcX2k3jo0b/GNSQYYcnw0UfGAdWhPw9GIJI+vP/Dh1FRIUVirU3xm6J8UooksK58x7oP9wsfLW8MRRYhtMBl9piYXeqVJhWVRR5u9xR0rjxIV+ym2+Is3CWdM=
script:
- docker build -t $IMAGE_NAME .
- docker images
before_deploy:
- docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
- docker tag $IMAGE_NAME:latest $IMAGE_NAME:$VERSION
deploy:
provider: script
script: docker push $IMAGE_NAME:$VERSION
on:
repo: pegasystems/docker-mock-web-service
all_branches: true
condition: "$TRAVIS_BRANCH =~ ^(v.+|master)$"