Compare commits

...

8 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
Stefan Reimer 929da2dc80 Latest ES releases
continuous-integration/drone/push Build is passing Details
2019-06-04 13:39:47 +00:00
Stefan Reimer d761bb0c3d More cleanup
continuous-integration/drone/push Build is passing Details
2019-05-17 22:39:40 +00:00
Stefan Reimer 4228de48a0 Cleanup gitignore 2019-05-17 22:39:40 +00:00
Stefan Reimer 43090f3660 Remove swp file
continuous-integration/drone/push Build is passing Details
2019-05-17 22:38:21 +00:00
6 changed files with 77 additions and 38 deletions

Binary file not shown.

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
- name: build-7
image: openjdk:13-alpine
commands:
- which make || apk add make
- make build PLUGIN_ES=es70x ES_VERSION=7.0.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

62
.gitignore vendored
View File

@ -1 +1,63 @@
elasticsearch-readonlyrest-plugin
# Vim
*.swp
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
parts/
sdist/
prof/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
.pytest*
nosetests.xml
coverage.xml
*,cover
.hypothesis/
# Translations
*.mo
*.pot
# dotenv
.env
# virtualenv
venv/
ENV/

View File

@ -1,5 +0,0 @@
# taken from https://hub.docker.com/_/gradle/
FROM gradle:alpine
USER root
RUN apk add --update make zip git

View File

@ -1,6 +1,6 @@
PLUGIN_VERSION ?= 1.18.0
PLUGIN_VERSION ?= 1.18.5
PLUGIN_ES ?= es66x
ES_VERSION ?= 6.7.1
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