From e72740fb051e41c1c6cd1faadf10b088a91d1dbf Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Fri, 28 Jun 2019 22:24:26 +0200 Subject: [PATCH] Replaced Travis with Docker Hub build --- .travis.yml | 7 ------- README.md | 1 - hooks/build | 5 +---- hooks/post_build | 3 +++ 4 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 .travis.yml create mode 100644 hooks/post_build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e2cac3b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: generic -services: - - docker -install: - - docker build . -after_script: - - "curl -X POST https://hooks.microbadger.com/images/qmcgaw/stackedit/Sb9uic5BXTlu5QaQPtBP0V1bm1E=" \ No newline at end of file diff --git a/README.md b/README.md index ad94064..8ff482f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ [![Docker StackEdit](https://github.com/qdm12/stackedit-docker/raw/master/readme/title.png)](https://hub.docker.com/r/qmcgaw/stackedit/) -[![Build Status](https://travis-ci.org/qdm12/stackedit-docker.svg?branch=master)](https://travis-ci.org/qdm12/stackedit-docker) [![Docker Build Status](https://img.shields.io/docker/build/qmcgaw/stackedit.svg)](https://hub.docker.com/r/qmcgaw/stackedit) [![GitHub last commit](https://img.shields.io/github/last-commit/qdm12/stackedit-docker.svg)](https://github.com/qdm12/stackedit-docker/commits) diff --git a/hooks/build b/hooks/build index 7af3d9c..691713e 100644 --- a/hooks/build +++ b/hooks/build @@ -1,9 +1,6 @@ #!/bin/bash -# see http://label-schema.org/rc1 -# https://docs.docker.com/docker-cloud/builds/advanced/#override-build-test-or-push-commands -# https://docs.docker.com/docker-cloud/builds/advanced/#custom-build-phase-hooks - docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg VCS_REF=`git rev-parse --short HEAD` \ + --build-arg BINCOMPRESS= \ -t $IMAGE_NAME . diff --git a/hooks/post_build b/hooks/post_build new file mode 100644 index 0000000..58ff43b --- /dev/null +++ b/hooks/post_build @@ -0,0 +1,3 @@ +#!/bin/bash + +curl -X POST https://hooks.microbadger.com/images/qmcgaw/${DOCKER_REPO}/Sb9uic5BXTlu5QaQPtBP0V1bm1E= || exit 0 \ No newline at end of file