Simple Python 2.7 HTTP server with GET, POST and HEAD requests handling in a Docker container.
1.3K
Simple Python 2.7 HTTP server with GET, POST and HEAD requests handling in a Docker container.
Jenkins can automatically detect and build newly created tags in a git repo.
Configure in Advanced settings of Jenkins Job: Click on the Advanced button below the repository URL and enter this paremeters:
Refspec:
+refs/tags/*:refs/remotes/origin/tags/*
Branches to build -> Branch Specifier:
*/tags/*
Include this commands in Jenkins Job script:
TAG=${GIT_BRANCH##origin/tags/}
docker build -t simple_http_server:$TAG .
tag=$TAG docker-compose up -d
Don't forget to enable SCM polling.
Content type
Image
Digest
Size
23.3 MB
Last updated
almost 10 years ago
docker pull vensder/simple_http_server