Skip to content
Snippets Groups Projects
Commit 2a91a6a4 authored by ale's avatar ale
Browse files

Run ssl-reverse-proxy inline and not as a CI service

parent fce70ead
No related branches found
No related tags found
1 merge request!469Run ci-test with actual data
Pipeline #85537 failed
......@@ -16,17 +16,13 @@ test:
alias: memcache
- name: docker.io/library/mysql:latest
alias: mysql
- name: registry.git.autistici.org/pipelines/images/test/ssl-reverse-proxy:main
alias: sslproxy
tags: [podman]
variables:
APACHE_PORT: 8080
TARGET_URL: "https://noblogs.org"
TARGET_ADDR: "sslproxy:8443"
TARGET_ADDR: "localhost:8443"
MYSQL_DATABASE: noblogs
MYSQL_ROOT_PASSWORD: rootpass
PROXY_DOMAIN: "noblogs.org"
PROXY_BACKEND_ADDR: "host.containers.internal:8080"
before_script:
- echo -n "$CI_JOB_TOKEN" | podman login -u gitlab-ci-token --password-stdin $CI_REGISTRY
script:
......
......@@ -2,6 +2,9 @@
TESTSUITE_IMAGE="registry.git.autistici.org/noblogs/testsuite:main"
# Run a ssl-reverse-proxy in the background.
podman run -d --expose 8443:8443 --rm --env PROXY_DOMAIN=noblogs.org --env PROXY_BACKEND_ADDR=localhost:8080 --network=host registry.git.autistici.org/pipelines/images/test/ssl-reverse-proxy:main
# Run the test suite using Podman, in the foreground.
podman run --rm --pull=always --env TARGET_URL=${TARGET_URL} --env TARGET_ADDR=${TARGET_ADDR} --network=host ${TESTSUITE_IMAGE}
rc=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment