Skip to content

Commit

Permalink
.gitlab-ci.yml: added docker image test
Browse files Browse the repository at this point in the history
  • Loading branch information
alesmrazek committed Nov 13, 2024
1 parent 0ccd687 commit cd8f291
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,23 @@ docker:build:cross-platform:
--push
--tag ${GITLAB_REGISTRY}:${CI_COMMIT_REF_NAME}
.
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}
alias: knot-resolver
before_script:
- apt-get update
- apt-get -y install knot-dnsutils curl
script:
- curl http://knot-resolver:5000/schema
- kdig nic.cz AAAA @knot-resolver#53

docker:deploy:
<<: *docker
Expand All @@ -251,7 +268,7 @@ docker:deploy:
only:
- tags
needs:
- docker:build:cross-platform
- docker:test
before_script:
- echo "$DOCKER_HUB_TOKEN" | docker login -u $DOCKER_HUB_USER --password-stdin
script:
Expand Down

0 comments on commit cd8f291

Please sign in to comment.