Skip to content

Commit

Permalink
fixup! fixup! .gitlab-ci.yml: docker: added cross-platform build and …
Browse files Browse the repository at this point in the history
…deploy
  • Loading branch information
alesmrazek committed Nov 12, 2024
1 parent 641f4a6 commit 89a30e9
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,22 +207,20 @@ build:macOS:
- amd64
- dind

# docker:build:
# <<: *docker
# <<: *multi_platform
# stage: build
# variables:
# DOCKER_IMAGE_NAME: knot-resolver:${PLATFORM}
# script:
# - docker buildx build --no-cache -t ${DOCKER_IMAGE_NAME} .
# after_script:
# - docker rmi ${DOCKER_IMAGE_NAME}
# - docker rmi $(docker images -f "dangling=true" -q)
# tags:
# - ${PLATFORM}
# - dind

docker:build:
docker:build:native:
<<: *docker
<<: *multi_platform
stage: build
script:
- docker buildx build --no-cache -t knot-resolver:${PLATFORM} .
after_script:
- docker rmi knot-resolver:${PLATFORM}
- docker rmi $(docker images -f "dangling=true" -q)
tags:
- ${PLATFORM}
- dind

docker:build:cross-platform:
<<: *docker
stage: build
# only:
Expand All @@ -249,11 +247,18 @@ docker:build:
docker:test:
<<: *docker
<<: *multi_platform
needs:
- docker:build
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 -y install knot-dnsutils
script:
- exit 0

- kdig nic.cz @knot-resolver
docker:deploy:
<<: *docker
stage: deploy
Expand Down

0 comments on commit 89a30e9

Please sign in to comment.