Commit 90693355 authored by Hispanico's avatar Hispanico

Update .gitlab-ci.yml

parent e38f739b
Pipeline #278 passed with stages
in 1 minute and 29 seconds
......@@ -6,6 +6,7 @@ stages:
variables:
CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
CONTAINER_ID: test-container
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
......@@ -26,10 +27,10 @@ test:
- docker pull $CONTAINER_TEST_IMAGE
# Test running the container.
- docker run --name test-container -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro $CONTAINER_TEST_IMAGE /lib/systemd/systemd
- docker run --name $CONTAINER_ID -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro $CONTAINER_TEST_IMAGE /lib/systemd/systemd
# Verify Ansible is available in the container.
- docker exec --tty test-container env TERM=xterm ansible --version
- docker exec --tty $CONTAINER_ID env TERM=xterm ansible --version
release-image:
tags:
......@@ -43,4 +44,4 @@ release-image:
- master
after_script:
- docker rm -f $container_id
- docker rm -f $CONTAINER_ID
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