parent
3cae054784
commit
6360de152d
20
.drone.yml
20
.drone.yml
@ -11,20 +11,23 @@ pipeline:
|
|||||||
restore: true
|
restore: true
|
||||||
mount:
|
mount:
|
||||||
- /drone/docker
|
- /drone/docker
|
||||||
|
# Set the ``DRONE_VOLUME=/tmp/drone-cache:/cache`` drone-server variable,
|
||||||
|
# so you can benefit from the caching.
|
||||||
|
# Otherwise you will have to make this repository trusted in Drone and use
|
||||||
|
# the volumes as follows.
|
||||||
# volumes:
|
# volumes:
|
||||||
# - /tmp/drone-cache:/cache
|
# - /tmp/drone-cache:/cache
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: plugins/docker:17.12
|
image: plugins/docker:17.12
|
||||||
repo: andrey01/mps-youtube
|
repo: andrey01/${DRONE_REPO_NAME}
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_COMMIT_SHA}
|
- ${DRONE_COMMIT_SHA}
|
||||||
# group: docker
|
# group: docker
|
||||||
# dockerfile: Dockerfile
|
# dockerfile: Dockerfile
|
||||||
secrets:
|
secrets: [docker_username, docker_password]
|
||||||
- docker_username
|
# Since we restore the docker image cache to /drone/docker
|
||||||
- docker_password
|
|
||||||
storage_path: /drone/docker
|
storage_path: /drone/docker
|
||||||
use_cache: true
|
use_cache: true
|
||||||
when:
|
when:
|
||||||
@ -36,18 +39,21 @@ pipeline:
|
|||||||
rebuild: true
|
rebuild: true
|
||||||
mount:
|
mount:
|
||||||
- /drone/docker
|
- /drone/docker
|
||||||
|
# Set the ``DRONE_VOLUME=/tmp/drone-cache:/cache`` drone-server variable,
|
||||||
|
# so you can benefit from the caching.
|
||||||
|
# Otherwise you will have to make this repository trusted in Drone and use
|
||||||
|
# the volumes as follows.
|
||||||
# volumes:
|
# volumes:
|
||||||
# - /tmp/drone-cache:/cache
|
# - /tmp/drone-cache:/cache
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
image: drillster/drone-email:latest
|
image: drillster/drone-email:latest
|
||||||
from: Drone CI <noreply@nixaid.com>
|
from: Drone CI <noreply@nixaid.com>
|
||||||
# from: drone-noreply@nixaid.com
|
subject: NIXAID Drone Pipeline {{#success build.status}}SUCCESS{{else}}FAILURE{{/success}} Notification
|
||||||
host: mail.nixaid.com
|
host: mail.nixaid.com
|
||||||
port: 587
|
port: 587
|
||||||
# username: arno
|
# username: arno
|
||||||
subject: NIXAID Drone Pipeline {{#success build.status}}SUCCESS{{else}}FAILURE{{/success}} Notification
|
# secrets: [ email_username, email_password ]
|
||||||
# secrets: [ EMAIL_USERNAME, EMAIL_PASSWORD ]
|
|
||||||
# recipients: [ andrey.arapov@nixaid.com ]
|
# recipients: [ andrey.arapov@nixaid.com ]
|
||||||
when:
|
when:
|
||||||
status: [success, failure] # changed
|
status: [success, failure] # changed
|
||||||
|
Loading…
Reference in New Issue
Block a user