Compare commits

...

4 Commits

Author SHA1 Message Date
Stefan Reimer 2a1d7ca4de Prevent building twice due to implicit Makefile deps
continuous-integration/drone/push Build is passing Details
2019-09-13 20:29:26 +00:00
Stefan Reimer 0f69219f0c Fix drone pipeline
continuous-integration/drone/push Build is passing Details
2019-09-13 20:24:35 +00:00
Stefan Reimer 6e578eab83 Fix drone pipeline
continuous-integration/drone/push Build is failing Details
2019-09-13 20:23:21 +00:00
Stefan Reimer 90fa296948 Build all supported versions, remove tag workflow
continuous-integration/drone/push Build is failing Details
2019-09-13 20:17:03 +00:00
3 changed files with 15 additions and 33 deletions

View File

@ -8,19 +8,8 @@ steps:
- which make || apk add make
- make fetch
- name: build
- name: build_upload_all
image: openjdk:13-alpine
commands:
- which make || apk add make
- make build PLUGIN_ES=es66x ES_VERSION=6.8.0
- name: build-7
image: openjdk:13-alpine
commands:
- which make || apk add make
- make build PLUGIN_ES=es70x ES_VERSION=7.1.1
- name: upload
image: python:3.7-alpine
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key
@ -28,22 +17,7 @@ steps:
from_secret: aws_secret_key
commands:
- which make || apk add make
- which git || apk add git
- which pip || apk add --update python py-pip python-dev
- which aws || pip install awscli
- make upload
when:
event:
- tag
- name: upload-7
image: python:3.7-alpine
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_key
commands:
- which make || apk add make
- which aws || pip install awscli
- make upload PLUGIN_ES=es70x ES_VERSION=7.0.1
when:
event:
- tag
- sh build_upload_all.sh

View File

@ -1,6 +1,6 @@
PLUGIN_VERSION ?= 1.18.0
PLUGIN_VERSION ?= 1.18.5
PLUGIN_ES ?= es66x
ES_VERSION ?= 6.8.0
ES_VERSION ?= 6.8.3
S3_BUCKETS ?= zero-downtime
S3_PREFIX ?= logging/elasticsearch
@ -25,7 +25,7 @@ fetch:
build: $(PACKAGE_FILE)
$(PACKAGE_FILE):
$(PACKAGE_FILE): fetch
cd elasticsearch-readonlyrest-plugin && ./gradlew --no-daemon --exclude-task test --stacktrace $(PLUGIN_ES):ror '-PesVersion=$(ES_VERSION)'
upload: $(PACKAGE_FILE)

8
build_upload_all.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
# Build all supported / currently used versions
make upload PLUGIN_ES=es63x ES_VERSION=6.4.3
make upload PLUGIN_ES=es66x ES_VERSION=6.8.3
make upload PLUGIN_ES=es73x ES_VERSION=7.3.1