Skip to content

Commit

Permalink
fixup! .gitlab-ci.yml: added docker image test
Browse files Browse the repository at this point in the history
  • Loading branch information
alesmrazek committed Nov 14, 2024
1 parent cd8f291 commit af92311
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,33 @@ docker:build:cross-platform:
--tag ${GITLAB_REGISTRY}:${CI_COMMIT_REF_NAME}
.
docker:test:run:
<<: *docker
<<: *multi_platform
# needs:
# - docker:build:cross-platform
before_script:
- docker volume create config
- docker volume create --opt type=tmpfs --opt device=tmpfs cache
script:
- >
docker run --rm -d --pid=host
--name knot-resolver
--network host
-v config:/etc/knot-resolver
-v cache:/var/cache/knot-resolver
${GITLAB_REGISTRY}:${CI_COMMIT_REF_NAME}
- docker ps
- ls /sys/class/net
- cat /etc/hosts
- docker exec -it knot-resolver kresctl stop


docker:test:
<<: *docker
<<: *multi_platform
image: debian:12-slim
# needs:
# - docker:build:native
# - docker:build:cross-platform
services:
- name: ${GITLAB_REGISTRY}:${CI_COMMIT_REF_NAME}
Expand All @@ -258,6 +279,8 @@ docker:test:
- apt-get update
- apt-get -y install knot-dnsutils curl
script:
- ls /sys/class/net
- cat /etc/hosts
- curl http://knot-resolver:5000/schema
- kdig nic.cz AAAA @knot-resolver#53

Expand Down

0 comments on commit af92311

Please sign in to comment.