Compare commits
9 Commits
Author | SHA1 | Date |
---|---|---|
Stefan Reimer | 2a1d7ca4de | |
Stefan Reimer | 0f69219f0c | |
Stefan Reimer | 6e578eab83 | |
Stefan Reimer | 90fa296948 | |
Stefan Reimer | 929da2dc80 | |
Stefan Reimer | d761bb0c3d | |
Stefan Reimer | 4228de48a0 | |
Stefan Reimer | 43090f3660 | |
Stefan Reimer | daf423304c |
15
.drone.yml
15
.drone.yml
|
@ -7,13 +7,9 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- which make || apk add make
|
- which make || apk add make
|
||||||
- make fetch
|
- make fetch
|
||||||
- name: build
|
|
||||||
|
- name: build_upload_all
|
||||||
image: openjdk:13-alpine
|
image: openjdk:13-alpine
|
||||||
commands:
|
|
||||||
- which make || apk add make
|
|
||||||
- make build
|
|
||||||
- name: upload
|
|
||||||
image: python:3.7-alpine
|
|
||||||
environment:
|
environment:
|
||||||
AWS_ACCESS_KEY_ID:
|
AWS_ACCESS_KEY_ID:
|
||||||
from_secret: aws_access_key
|
from_secret: aws_access_key
|
||||||
|
@ -21,8 +17,7 @@ steps:
|
||||||
from_secret: aws_secret_key
|
from_secret: aws_secret_key
|
||||||
commands:
|
commands:
|
||||||
- which make || apk add make
|
- 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
|
- which aws || pip install awscli
|
||||||
- make upload
|
- sh build_upload_all.sh
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
|
@ -1 +1,63 @@
|
||||||
elasticsearch-readonlyrest-plugin
|
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/
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# taken from https://hub.docker.com/_/gradle/
|
|
||||||
FROM gradle:alpine
|
|
||||||
|
|
||||||
USER root
|
|
||||||
RUN apk add --update make zip git
|
|
8
Makefile
8
Makefile
|
@ -1,6 +1,6 @@
|
||||||
PLUGIN_VERSION ?= 1.18.0
|
PLUGIN_VERSION ?= 1.18.5
|
||||||
PLUGIN_ES ?= es66x
|
PLUGIN_ES ?= es66x
|
||||||
ES_VERSION ?= 6.7.1
|
ES_VERSION ?= 6.8.3
|
||||||
|
|
||||||
S3_BUCKETS ?= zero-downtime
|
S3_BUCKETS ?= zero-downtime
|
||||||
S3_PREFIX ?= logging/elasticsearch
|
S3_PREFIX ?= logging/elasticsearch
|
||||||
|
@ -25,12 +25,12 @@ fetch:
|
||||||
|
|
||||||
build: $(PACKAGE_FILE)
|
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)'
|
cd elasticsearch-readonlyrest-plugin && ./gradlew --no-daemon --exclude-task test --stacktrace $(PLUGIN_ES):ror '-PesVersion=$(ES_VERSION)'
|
||||||
|
|
||||||
upload: $(PACKAGE_FILE)
|
upload: $(PACKAGE_FILE)
|
||||||
for bucket in $(S3_BUCKETS); do \
|
for bucket in $(S3_BUCKETS); do \
|
||||||
aws s3 cp --acl public-read $(PACKAGE_FILE) s3://$$bucket/$(S3_PREFIX)/$(PACKAGE); \
|
aws s3 cp --quiet --acl public-read $(PACKAGE_FILE) s3://$$bucket/$(S3_PREFIX)/$(PACKAGE); \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean_s3:
|
clean_s3:
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue