Skip to content

Commit 0e8b85a

Browse files
committed
revised docker build script
1 parent a123578 commit 0e8b85a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ notifications:
88
on_failure: always
99
slack:
1010
secure: YCLQ9AqOPR4cnB+v9d+O6eX31IWDL43GyFcgHRCoUbfsccJoguo0vHqjzd36VdE+bp3PD9GJTEdiiDJGCPgQyq3vUP9VhiR4xbLdNSGth6+7Q0wZdoRHkG0qjXKgcFtEnAmjwgadHQ3Ymh9krZvzRlee5B92lPh2oocU1Lijw9Vw4e6cIco+Fr3Pjnx3eY1rSVUd45qv7bnzxHCT+my4lMcqgJXd9/OIHVL+RCigGcKeBSR7V79Fi/4fg7+e1fwaiwZKpRfF4cOtQ30K/x0M07Sbv01OHbn8CybUw1uax+6s+8nJXPCyWymxONexy54n/uMCAqr6ODNlKvJdeP0KqY+n3l913JCFZKVYfM6roxC70Mn4ZmT670Kxlc1ROLxmgruSTk5Cr3Pv+rSpC1F7p1Fv7gUi+Aia2uZec2n4gPmq482psubkRORW9f5aAtAQMzkdHYg8hs3QA0/XShpm+eksK6+/DAFP/eXQVNyDQysJlp7SD/GFjmusKIa4tJqD+jjWOFXtojyY7vT1RFIrMtUPAz4s5LMPLWiS4p0H6KCcJ3GpYEuZm5i4TJtQInec4lIgj/JLUSueIZy/kD+jY+nBXEzCyZPi1YFU/yQmx4+tBknKWJvQpFXI542bg7qEWD9IZUpGfIByRUVQvCo0xuhA/pCOVH8HQO0xTkBrPb0=
11-
deploy:
12-
provider: script
13-
script: docker_build.sh
11+
after_success:
12+
- ./docker_build.sh

docker_build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/usr/bin/env sh
2-
curl -H "Content-Type: application/json" --data '{"build": true}' -X POST https://registry.hub.docker.com/u/jakewmeyer/spacex-api/trigger/5e92e617-8b11-489f-a269-36ab24a4d7a5/;
2+
if [ "$TRAVIS_BRANCH" == "master" ]; then
3+
curl -H "Content-Type: application/json" --data '{"build": true}' -X POST https://registry.hub.docker.com/u/jakewmeyer/spacex-api/trigger/5e92e617-8b11-489f-a269-36ab24a4d7a5/;
4+
fi

0 commit comments

Comments
 (0)