Smoke test image

This commit is contained in:
 Timur Izhbulatov 2017-11-03 15:26:17 +03:00
parent b1a358971e
commit 24ea1099cc
3 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/node_modules/
/dist/
Dockerfile
.state

4
Jenkinsfile vendored
View File

@ -27,6 +27,10 @@ build('koffing', 'docker-host') {
sh 'make build_image'
}
runStage('test image') {
sh 'make test'
}
try {
if (env.BRANCH_NAME == 'master') {
runStage('push image') {

View File

@ -40,3 +40,9 @@ build:
clean:
rm -rf dist
.state: build_image
echo $(SERVICE_IMAGE_TAG) > $@
test: .state
docker run --rm $(SERVICE_IMAGE_NAME):$(shell cat .state) nginx -T -c /etc/nginx/nginx.conf