Commit 6aee28bc authored by David Foucher's avatar David Foucher

Test goss docker image

parent 9c3c246b
Pipeline #1975 failed with stage
in 18 seconds
#TODO test docker image with https://github.com/aelsabbahy/goss
variables:
TREFLE_OLD_VERSION: "api-v0.6.1"
api publish:
image:
......@@ -12,8 +14,6 @@ api publish:
- /^api-v[0-9.]+$/
backoffice publish:
variables:
TREFLE_OLD_VERSION: "api-v0.6.1"
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
......@@ -24,6 +24,24 @@ backoffice publish:
only:
- /^backoffice-v[0-9.]+$/
test backoffice image:
variables:
TREFLE_BACK_VERSION: backoffice-v0.0.2
image:
name: docker/compose
stage: test
script:
- cd ${CI_PROJECT_DIR}/docker
- docker-compose up -d --build trefle
- docker ps
- docker network
- curl -fsSL https://goss.rocks/install | sh
- GOSS_FILES_PATH=`pwd`/backoffice dgoss run -p 8888:80 -e "TREFLE_BACK_VERSION=$TREFLE_BACK_VERSION" -e "OLD_VERSION=$TREFLE_OLD_VERSION" -v `pwd`/backoffice/etc/nginx/sites-enabled:/etc/nginx/sites-enabled --link docker_trefle_1 --network docker_default ${CI_REGISTRY_IMAGE}:${TREFLE_BACK_VERSION}
only:
- /^test$/
test:
image: python:3.6
cache:
......
file:
/etc/nginx/sites-enabled/trefle.conf:
exists: true
mode: "0644"
size: 1758
filetype: file
contains: []
package:
file:
installed: true
versions:
- 1:5.25-2ubuntu1.3
http:
http://127.0.0.1/:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []
http://trefle:8000/schema:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []
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