Build all supported versions, remove tag workflow
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
929da2dc80
commit
90fa296948
33
.drone.yml
33
.drone.yml
@ -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,6 @@ steps:
|
||||
from_secret: aws_secret_key
|
||||
commands:
|
||||
- which make || apk add make
|
||||
- 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
|
||||
- ./build_upload_all.sh
|
||||
|
6
Makefile
6
Makefile
@ -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)
|
||||
|
12
build_upload_all.sh
Executable file
12
build_upload_all.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Build all supported / currently used versions
|
||||
|
||||
make build PLUGIN_ES=es63x ES_VERSION=6.4.3
|
||||
make build PLUGIN_ES=es66x ES_VERSION=6.8.3
|
||||
make build PLUGIN_ES=es73x ES_VERSION=7.3.1
|
||||
|
||||
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
|
Loading…
Reference in New Issue
Block a user