You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.7 KiB
61 lines
1.7 KiB
# workspace:
|
|
# base: /workspace
|
|
# path: src/git.nixaid.com/arno/myapp/
|
|
#
|
|
# branches:
|
|
# - master
|
|
|
|
pipeline:
|
|
restore_cache:
|
|
image: drillster/drone-volume-cache:latest
|
|
restore: true
|
|
mount:
|
|
- /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:
|
|
# - /tmp/drone-cache:/cache
|
|
|
|
publish:
|
|
image: plugins/docker:17.12
|
|
repo: andrey01/${DRONE_REPO_NAME}
|
|
tags:
|
|
- latest
|
|
- ${DRONE_COMMIT_SHA:0:7}
|
|
# group: docker
|
|
# dockerfile: Dockerfile
|
|
secrets: [docker_username, docker_password]
|
|
# Since we restore the docker image cache to /drone/docker
|
|
storage_path: /drone/docker
|
|
use_cache: true
|
|
when:
|
|
event: [push, tag]
|
|
branch: master
|
|
|
|
rebuild_cache:
|
|
image: drillster/drone-volume-cache:latest
|
|
rebuild: true
|
|
mount:
|
|
- /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:
|
|
# - /tmp/drone-cache:/cache
|
|
|
|
notify:
|
|
image: drillster/drone-email:latest
|
|
from: Drone CI <noreply@nixaid.com>
|
|
subject: NIXAID Drone Pipeline {{#success build.status}}SUCCESS{{else}}FAILURE{{/success}} Notification
|
|
host: mail.nixaid.com
|
|
port: 587
|
|
# username: arno
|
|
# secrets: [ email_username, email_password ]
|
|
# recipients: [ andrey.arapov@nixaid.com ]
|
|
when:
|
|
status: [success, failure] # changed
|
|
event: [push, tag]
|