From 3496710b8f3f8e26c1e53c9b846ae13d74095150 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 25 Mar 2024 10:38:27 +0100 Subject: [PATCH] change build pipeline --- .drone.yml | 26 ++++++++++++++++++-------- Dockerfile | 2 +- README.md | 3 ++- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 68b40cd..66468e5 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/elasticsearch + from_secret: REGISTRY_PASS + repo: git.ar21.de/aaron/elasticsearch 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/elasticsearch + from_secret: REGISTRY_PASS + repo: git.ar21.de/aaron/elasticsearch tags: latest + platforms: + - linux/arm64 + - linux/amd64 dry_run: true when: branch: diff --git a/Dockerfile b/Dockerfile index a9b3578..d5d5adb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,2 @@ -FROM amd64/elasticsearch:8.12.2 +FROM elasticsearch:8.12.2 RUN bin/elasticsearch-plugin install --batch ingest-attachment diff --git a/README.md b/README.md index 7f586d6..4e26ea2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # elasticsearch with injest-attachment plugin -# \ No newline at end of file +[![Build Status](https://drone.ar21.de/api/badges/aaron/elasticsearch/status.svg)](https://drone.ar21.de/aaron/elasticsearch) +[git.ar21.de/aaron/elasticsearch](https://git.ar21.de/aaron/-/packages/container/elasticsearch/latest) \ No newline at end of file