Skip to content

Commit c0704ba

Browse files
committed
ci(deploy): fix deploy script
1 parent b30a31f commit c0704ba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,18 @@ install:
2424
script:
2525
- docker run --rm "lgatica/redis-sentinel:$PATCH_VERSION" redis-cli -v
2626

27-
after_success:
27+
before_deploy:
2828
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
2929
- docker tag "lgatica/redis-sentinel:$PATCH_VERSION" "lgatica/redis-sentinel:$MINOR_VERSION"
3030
- docker tag "lgatica/redis-sentinel:$PATCH_VERSION" "lgatica/redis-sentinel:$MAJOR_VERSION"
3131
- if [ "$LATEST" == "latest" ]; then
3232
docker tag "lgatica/redis-sentinel:$PATCH_VERSION" "lgatica/redis-sentinel:latest";
3333
fi
3434
- docker push lgatica/redis-sentinel
35+
36+
deploy:
37+
provider: script
38+
script: docker push lgatica/redis-sentinel
39+
skip_cleanup: true
40+
on:
41+
branch: master

0 commit comments

Comments
 (0)