Commit cbd05f89 authored by Mike Shoup's avatar Mike Shoup

Add gitlab ci

parent 725f795a
Pipeline #24456917 failed with stages
in 2 minutes and 54 seconds
image: docker
services:
- docker:dind
stages:
- build
- test
variables:
IMAGE_PATH: registry.gitlab.com/shouptech/web-benchmarks
build_pyfalcon_gunicorn:
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build --pull -t $IMAGE_PATH:pyfalcon-gunicorn -f pyfalcon/Dockerfile.gunicorn pyfalcon/
- docker push $IMAGE_PATH:pyfalcon-gunicorn
test_pyfalcon_gunicorn:
stage: test
script:
- docker run -d -p 8000:8000 $IMAGE_PATH:pyfalcon-gunicorn
- wget -qO- http://docker:8000/hello | grep '{"hello":"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