Skip to content

Commit

Permalink
.gitlab-ci.yml: docker:build at least try to run the image
Browse files Browse the repository at this point in the history
  • Loading branch information
alesmrazek committed Nov 18, 2024
1 parent 51bc597 commit 1ddfe16
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,23 @@ docker:build:
- tags
script:
- docker buildx build --no-cache -t knot-resolver:${PLATFORM} .
- >
docker run --rm -it
--network host
--name knot-resolver-${PLATFORM}
knot-resolver:${PLATFORM}
> knot-resolver.log &
- docker ps
- docker exec -it kres-${PLATFORM} kresctl stop
after_script:
- docker stop kres-${PLATFORM}
- docker rm kres-${PLATFORM}
- docker rmi knot-resolver:${PLATFORM}
- docker rmi $(docker images -f "dangling=true" -q)
artifacts:
when: always
paths:
- knot-resolver.log
tags:
- ${PLATFORM}
- dind
Expand Down

0 comments on commit 1ddfe16

Please sign in to comment.