Commit f79e471b authored by Mike Shoup's avatar Mike Shoup

Add pyflask build

parent 15c6c5db
Pipeline #24457352 passed with stages
in 2 minutes and 51 seconds
......@@ -37,3 +37,31 @@ test_pyfalcon_uwsgi:
- docker run -d -p 8000:8000 $IMAGE_PATH:pyfalcon-uwsgi
- sleep 5
- wget -qO- http://docker:8000/hello | grep world
build_pyflask_gunicorn:
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build --pull -t $IMAGE_PATH:pyflask-gunicorn -f pyflask/Dockerfile.gunicorn pyflask/
- docker push $IMAGE_PATH:pyflask-gunicorn
test_pyflask_gunicorn:
stage: test
script:
- docker run -d -p 8000:8000 $IMAGE_PATH:pyflask-gunicorn
- sleep 5
- wget -qO- http://docker:8000/hello | grep world
build_pyflask_uwsgi:
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build --pull -t $IMAGE_PATH:pyflask-uwsgi -f pyflask/Dockerfile.uwsgi pyflask/
- docker push $IMAGE_PATH:pyflask-uwsgi
test_pyflask_uwsgi:
stage: test
script:
- docker run -d -p 8000:8000 $IMAGE_PATH:pyflask-uwsgi
- sleep 5
- wget -qO- http://docker:8000/hello | grep world
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment