From 9bff6b95ffed9c0ab581f142ef2d710e5bcef694 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 24 May 2024 09:50:12 +0200 Subject: [PATCH] change build to local registry --- .drone.yml | 30 ++++++++++++++++++++---------- Dockerfile | 2 +- README.md | 5 ++++- 3 files changed, 25 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4c9d930..90ae97e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,30 +2,40 @@ 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/kustomize-ci + from_secret: REGISTRY_PASS + repo: git.ar21.de/aaron/kustomize-ci 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/kustomize-ci + from_secret: REGISTRY_PASS + repo: git.ar21.de/aaron/kustomize-ci tags: latest + platforms: + - linux/arm64 + - linux/amd64 dry_run: true when: - exclude: - branch: + branch: + exclude: - main when: event: diff --git a/Dockerfile b/Dockerfile index b3f6d28..a6ea1ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM amd64/alpine:3.20.0 +FROM alpine:3.20.0 RUN apk add --no-cache git curl bash RUN curl -s https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh | bash RUN mv /kustomize /bin/kustomize diff --git a/README.md b/README.md index b3b7053..400a980 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Build Status](https://drone.ar21.de/api/badges/aaron/kustomize-ci/status.svg)](https://drone.ar21.de/aaron/kustomize-ci) # kustomize-ci Image -Alpine + git + kustomize \ No newline at end of file +Alpine + git + kustomize + +`git.ar21.de/aaron/kustomize-ci:latest` \ No newline at end of file