diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5b4fa2f7aad98b2c4c27e54cfd66516ff7bbe039..1072abdc022d7956d571d4a887df9b78a655bbbf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,20 +3,13 @@ include: "https://git.autistici.org/pipelines/containers/raw/master/common.yml" # test the newly built container before releasing it. test: stage: container-test - image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/debian:stable - tags: [docker-in-docker] - services: - - name: ${IMAGE_TAG} - alias: noblogs - - name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/mysql:latest - alias: mysql + image: registry.git.autistici.org/pipelines/images/test/float-podman-runner:master + tags: [podman] variables: APACHE_PORT: 8080 - SITE_URL: "http://noblogs:8080" - MYSQL_DATABASE: noblogstest - MYSQL_ROOT_PASSWORD: changeme - PHP_FPM_USER: www-data + SITE_URL: "http://localhost:8080" + before_script: + - echo -n "$CI_JOB_TOKEN" | podman login -u gitlab-ci-token --password-stdin $CI_REGISTRY script: - - apt -q update - - env DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install curl - - "curl -H 'Host: noblogs.org' -v ${SITE_URL}" + - with-container --expose=8080 $IMAGE_TAG ./docker/test.sh +