We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d4f1bf commit fe31969Copy full SHA for fe31969
.travis.yml
@@ -1,14 +1,19 @@
1
+env:
2
+ - IMGNAME=bradmorg/ubuntu:dbot
3
+
4
services:
5
- docker
6
-#before_install:
-#- docker image build -t ubuntu:dbot .
7
+before_install:
8
+- docker image build -t ${IMGNAME} .
9
10
script:
11
- docker images
12
13
14
after_success:
15
+- docker login -u ${DHUB_USERNAME} -p ${DHUB_PASS}
16
+- docker push ${IMGNAME}
17
- echo "${SSH_KEY}" | base64 --decode > /tmp/ssh_rsa
18
- chmod 600 /tmp/ssh_rsa
19
- ssh -o "StrictHostKeyChecking no" pi@${IPADDR} -i /tmp/ssh_rsa "docker run -d -e TOKEN=${TOKEN} ubuntu:dbot"
0 commit comments