change build to local registry
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2024-05-24 09:50:12 +02:00
parent eae7eae610
commit 9bff6b95ff
Signed by: aaron
GPG key ID: 643004654D40D577
3 changed files with 25 additions and 12 deletions

View file

@ -2,30 +2,40 @@ kind: pipeline
name: deploy name: deploy
steps: steps:
- name: docker - name: docker
image: plugins/docker image: thegeeklab/drone-docker-buildx
privileged: true
settings: settings:
registry: git.ar21.de
username: username:
from_secret: DOCKER_USERNAME from_secret: REGISTRY_USER
password: password:
from_secret: DOCKER_PASSWORD from_secret: REGISTRY_PASS
repo: aaronriedel/kustomize-ci repo: git.ar21.de/aaron/kustomize-ci
tags: latest tags: latest
platforms:
- linux/arm64
- linux/amd64
when: when:
branch: branch:
- main - main
- name: docker-build - name: docker-build
image: plugins/docker image: thegeeklab/drone-docker-buildx
privileged: true
settings: settings:
registry: git.ar21.de
username: username:
from_secret: DOCKER_USERNAME from_secret: REGISTRY_USER
password: password:
from_secret: DOCKER_PASSWORD from_secret: REGISTRY_PASS
repo: aaronriedel/kustomize-ci repo: git.ar21.de/aaron/kustomize-ci
tags: latest tags: latest
platforms:
- linux/arm64
- linux/amd64
dry_run: true dry_run: true
when: when:
exclude:
branch: branch:
exclude:
- main - main
when: when:
event: event:

View file

@ -1,4 +1,4 @@
FROM amd64/alpine:3.20.0 FROM alpine:3.20.0
RUN apk add --no-cache git curl bash 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 curl -s https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh | bash
RUN mv /kustomize /bin/kustomize RUN mv /kustomize /bin/kustomize

View file

@ -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 # kustomize-ci Image
Alpine + git + kustomize Alpine + git + kustomize
`git.ar21.de/aaron/kustomize-ci:latest`