Varakh
b58c283a4b
All checks were successful
continuous-integration/drone/push Build is passing
- Add a ENV_DIR for docker containers to allow changing the env file location changes where the rest of the configuration is bootstrapped from - Add log_dir and snapshot_dir in env file configuration to determine the log and snapshot directories - Massively cleaned up README and provide better examples
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
trigger:
|
|
event:
|
|
include:
|
|
- push
|
|
- cron
|
|
branch:
|
|
- master
|
|
|
|
environment: &default_environment
|
|
REVISION: ${DRONE_COMMIT_SHA}
|
|
CREATED: ${DRONE_BUILD_CREATED}
|
|
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
|
|
# also change in 'tags' of build docker
|
|
TS3WEB_VERSION: 2.2.6
|
|
|
|
steps:
|
|
- name: build docker image
|
|
image: plugins/docker
|
|
environment:
|
|
<<: *default_environment
|
|
settings:
|
|
purge: true
|
|
repo: varakh/ts3web
|
|
username:
|
|
from_secret: dockerhub_user
|
|
password:
|
|
from_secret: dockerhub_key
|
|
tags:
|
|
- latest
|
|
- 2.2.6
|
|
|
|
- name: notify
|
|
image: drillster/drone-email
|
|
settings:
|
|
subject: "Build failed"
|
|
body: "URL ${DRONE_BUILD_LINK}"
|
|
host:
|
|
from_secret: mail_host
|
|
username:
|
|
from_secret: mail_user
|
|
password:
|
|
from_secret: mail_password
|
|
from:
|
|
from_secret: mail_from
|
|
when:
|
|
status:
|
|
- failure
|
|
---
|
|
kind: signature
|
|
hmac: f575a63bd85c4a95593be5e077373216fbd50ad57e6b3d1db56f950e881ed2a5
|
|
|
|
...
|