forked from kwk/docker-registry-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (22 loc) · 779 Bytes
/
.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
language: C
sudo: required
services:
- docker
addons:
ssh_known_hosts: $DEPLOYMENT_TARGET
env:
- DOCKER_IMAGE_NAME="$DOCKER_REGISTRY/3r1c/docker-registry-frontend:1.0-$TRAVIS_BUILD_NUMBER"
script:
- make compile
after_success:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" $DOCKER_REGISTRY
- docker build -t $DOCKER_IMAGE_NAME .
- docker push $DOCKER_IMAGE_NAME
#before_deploy:
#- openssl aes-256-cbc -K $encrypted_d3751784d1e2_key -iv $encrypted_d3751784d1e2_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
#- eval "$(ssh-agent -s)"
#- chmod 600 /tmp/deploy_rsa
#- ssh-add /tmp/deploy_rsa
#deploy:
# - provider: script
# script: ssh core@$DEPLOYMENT_TARGET 'docker pull $DOCKER_IMAGE_NAME && docker service update --image $DOCKER_IMAGE_NAME registry'