Skip to content

Commit df8c6c5

Browse files
authored
Merge pull request #6 from lohanidamodar/feat-travis-deploy
feat deploy with travis
2 parents baa0199 + 142fcae commit df8c6c5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ notifications:
1010
services:
1111
- docker
1212

13+
before_install:
14+
- >
15+
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
16+
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
17+
fi
18+
1319
install:
1420
- docker-compose up -d
1521
- sleep 10
@@ -23,4 +29,11 @@ script:
2329
else
2430
echo 'Offline.'
2531
exit 1
26-
fi
32+
fi
33+
34+
deploy:
35+
- provider: script
36+
edge: true
37+
script: docker build -t appwrite/resque-web:$TRAVIS_TAG ./ --push
38+
on:
39+
tags: true

0 commit comments

Comments
 (0)