50 lines
997 B
YAML
50 lines
997 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: fetch
|
|
image: alpine/git
|
|
commands:
|
|
- which make || apk add make
|
|
- make fetch
|
|
|
|
- name: build
|
|
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
|
|
AWS_SECRET_ACCESS_KEY:
|
|
from_secret: aws_secret_key
|
|
commands:
|
|
- which make || apk add make
|
|
- 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
|