You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
834 B
YAML

---
kind: pipeline
name: default
steps:
- name: build
image: d.xr.to/eater/flavors
privileged: true
commands:
- img login -u "drone" -p "$PASSWORD" d.xr.to
- ./flavor -ip all
environment:
PASSWORD:
from_secret: pass
volumes:
- name: logs
path: /drone/src/logs
- name: upload logs
image: minio/mc
commands:
- mc config host add minio https://io.cijber.net "$ACCESS_KEY" "$SECRET_KEY"
- mc cp logs/* "minio/logs/$DRONE_REPO/$DRONE_BUILD_NUMBER/"
- 'echo "Logs can be found at: https://io.cijber.net/minio/logs/$DRONE_REPO/$DRONE_BUILD_NUMBER/"'
environment:
ACCESS_KEY:
from_secret: minio_access_key
SECRET_KEY:
from_secret: minio_secret_key
volumes:
- name: logs
path: /drone/src/logs
when:
status:
- failure
volumes:
- name: logs
temp: {}