mirror of https://github.com/statping/statping
deployment
parent
428a840c3d
commit
e13b446540
|
@ -43,6 +43,7 @@ notifications:
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
script:
|
script:
|
||||||
|
- "if [[ \"$TRAVIS_BRANCH\" == \"dev\" && \"$TRAVIS_PULL_REQUEST\" = \"false\" ]]; then make dockerhub-dev; fi"
|
||||||
- "travis_retry make clean test-ci"
|
- "travis_retry make clean test-ci"
|
||||||
- "if [[ \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" = \"false\" ]]; then make coverage; fi"
|
- "if [[ \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" = \"false\" ]]; then make coverage; fi"
|
||||||
services:
|
services:
|
||||||
|
|
26
Makefile
26
Makefile
|
@ -232,22 +232,24 @@ download-key:
|
||||||
wget -O statping.gpg $(SIGN_URL)
|
wget -O statping.gpg $(SIGN_URL)
|
||||||
gpg --import statping.gpg
|
gpg --import statping.gpg
|
||||||
|
|
||||||
# build :latest docker tag
|
|
||||||
docker-build-latest:
|
|
||||||
docker build --build-arg VERSION=${VERSION} -t statping/statping:latest --no-cache -f Dockerfile .
|
|
||||||
docker tag statping/statping:latest statping/statping:v${VERSION}
|
|
||||||
|
|
||||||
# push the :dev docker tag using curl
|
# push the :dev docker tag using curl
|
||||||
publish-dev:
|
dockerhub-dev:
|
||||||
curl -H "Content-Type: application/json" --data '{"docker_tag": "dev"}' -X POST $(DOCKER)
|
docker build --build-arg VERSION=${VERSION} -t statping/statping:dev --no-cache -f Dockerfile.base .
|
||||||
|
docker push statping/statping:dev
|
||||||
|
|
||||||
publish-latest: publish-base
|
dockerhub:
|
||||||
curl -H "Content-Type: application/json" --data '{"docker_tag": "latest"}' -X POST $(DOCKER)
|
docker build --build-arg VERSION=${VERSION} -t statping/statping:base --no-cache -f Dockerfile.base .
|
||||||
|
docker build --build-arg VERSION=${VERSION} -t statping/statping:latest --no-cache -f Dockerfile .
|
||||||
|
docker tag statping/statping statping/statping:v${VERSION}
|
||||||
|
docker push statping/statping:base
|
||||||
|
docker push statping/statping:v${VERSION}
|
||||||
|
docker push statping/statping
|
||||||
|
|
||||||
publish-base:
|
docker-build-dev:
|
||||||
curl -H "Content-Type: application/json" --data '{"docker_tag": "base"}' -X POST $(DOCKER)
|
docker build --build-arg VERSION=${VERSION} -t hunterlong/statping:latest --no-cache -f Dockerfile .
|
||||||
|
docker tag hunterlong/statping:dev hunterlong/statping:dev-v${VERSION}
|
||||||
|
|
||||||
post-release: frontend-build upload_to_s3 publish-homebrew publish-latest
|
post-release: frontend-build upload_to_s3 publish-homebrew dockerhub
|
||||||
|
|
||||||
# update the homebrew application to latest for mac
|
# update the homebrew application to latest for mac
|
||||||
publish-homebrew:
|
publish-homebrew:
|
||||||
|
|
Loading…
Reference in New Issue