From 154b3e34aeffb37c7252480c555bd9ca850f1fc4 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Wed, 22 May 2024 20:59:45 +0200 Subject: [PATCH] move build and registry --- .drone.yml | 26 ++++++++++++++++++-------- Dockerfile | 2 +- README.md | 7 ++++++- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index ace4235..dd99e60 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,26 +2,36 @@ kind: pipeline name: deploy steps: - name: docker - image: plugins/docker + image: thegeeklab/drone-docker-buildx + privileged: true settings: + registry: git.ar21.de username: - from_secret: DOCKER_USERNAME + from_secret: REGISTRY_USER password: - from_secret: DOCKER_PASSWORD - repo: aaronriedel/debug + from_secret: REGISTRY_PASS + repo: git.ar21.de/aaron/debug tags: latest + platforms: + - linux/arm64 + - linux/amd64 when: branch: - main - name: docker-build - image: plugins/docker + image: thegeeklab/drone-docker-buildx + privileged: true settings: + registry: git.ar21.de username: - from_secret: DOCKER_USERNAME + from_secret: REGISTRY_USER password: - from_secret: DOCKER_PASSWORD - repo: aaronriedel/debug + from_secret: REGISTRY_PASS + repo: git.ar21.de/aaron/debug tags: latest + platforms: + - linux/arm64 + - linux/amd64 dry_run: true when: branch: diff --git a/Dockerfile b/Dockerfile index 536ef53..979fa2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM amd64/debian:12.5 RUN apt-get update -qq -RUN apt-get install -qq curl nmap inetutils-ping iftop --no-install-recommends +RUN apt-get install -qq curl nmap inetutils-ping iftop ldap-utils --no-install-recommends RUN rm -rf /var/lib/apt/lists/* RUN rm -rf /var/cache/apt/* ENTRYPOINT ["tail", "-f", "/dev/null"] \ No newline at end of file diff --git a/README.md b/README.md index c3ccc50..3ccd1e9 100644 --- a/README.md +++ b/README.md @@ -1 +1,6 @@ -[![Build Status](https://drone.ar21.de/api/badges/aaron/debug-docker/status.svg)](https://drone.ar21.de/aaron/debug-docker) \ No newline at end of file +[![Build Status](https://drone.ar21.de/api/badges/aaron/debug-docker/status.svg)](https://drone.ar21.de/aaron/debug-docker) + +use with docker: +``` +docker run --rm -it --entrypoint bash --network traefik git.ar21.de/aaron/debug +``` \ No newline at end of file