migrate to drone 1.1
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Andy 2019-04-29 09:10:12 +02:00
parent ecbd9281dc
commit 1c58dda774
Signed by: arno
GPG Key ID: 9076D5E6B31AE99C

View File

@ -1,85 +1,47 @@
# workspace: ---
# base: /workspace kind: pipeline
# path: src/git.nixaid.com/arno/myapp/ name: default
#
# branches:
# - master
pipeline: platform:
restore_cache: os: linux
image: drillster/drone-volume-cache:latest arch: amd64
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
# drone repo add arno/lychee steps:
# drone secret add/update --name docker_username --value arno --event push --event tag --event deployment arno/lychee - name: publish
# drone secret add/update --name docker_password --value "$(pass show vps/registry.nixaid.com | head -1)" --event push --event tag --event deployment arno/lychee pull: default
publish: image: plugins/docker:18.09
image: plugins/docker:17.12 settings:
# repo: andrey01/${DRONE_REPO_NAME} registry: https://registry.nixaid.com
registry: registry.nixaid.com repo: "registry.nixaid.com/${DRONE_REPO_NAMESPACE}/${DRONE_REPO_NAME}"
repo: registry.nixaid.com/arno/${DRONE_REPO_NAME}
tags: tags:
- latest - latest
# - ${DRONE_COMMIT_SHA:0:7} username:
# group: docker from_secret: docker_username
# dockerfile: Dockerfile password:
secrets: [docker_username, docker_password] from_secret: docker_password
# Since we restore the docker image cache to /drone/docker # storage_path: /drone/docker
storage_path: /drone/docker # storage_driver: aufs
use_cache: true # ipv6: false
# debug: true
when: when:
event: [push, tag] branch:
branch: master - master
event:
- push
- tag
rebuild_cache: - name: notify
image: drillster/drone-volume-cache:latest pull: default
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
# ca_cert comes from /srv/data/registry/certs/ca.crt
claircheck:
# image: jmccann/drone-clair:1
image: andrey01/drone-clair
url: http://clair:6060
secrets: [ docker_username, docker_password ]
# ignore errors for now. This will work only in drone 0.9 https://github.com/drone/drone-runtime/commit/3e8bd99f60f4032226523320cd2b2321f9525159
err_ignore: true
scan_image: registry.nixaid.com/arno/${DRONE_REPO_NAME}:latest
ca_cert: |
-----BEGIN CERTIFICATE-----
MIIBOjCB4KADAgECAgkAzhpbLWXa4H0wCgYIKoZIzj0EAwIwEDEOMAwGA1UEAwwF
bXktQ0EwHhcNMTgwNzA5MjIzMTAzWhcNMjgwNzA2MjIzMTAzWjAQMQ4wDAYDVQQD
DAVteS1DQTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABFIE8bTfQ76U5qG/Xgjw
BbQU0oRJLYlRxBIWF9MTNSJr2LoaoyrU8jrcWQGRrfKPoVuwUJWp2tp5SJy0AHH7
4fijIzAhMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgKkMAoGCCqGSM49
BAMCA0kAMEYCIQCYbTbxRD2yX4LzGjh84fKPWPQM9ps8RE2nfwZjqdRUGgIhAOHb
USigh6FzqEPk2jiaV3t1wNtChRWRfupTKG6CD345
-----END CERTIFICATE-----
notify:
image: drillster/drone-email:latest image: drillster/drone-email:latest
from: Drone CI <noreply@nixaid.com> settings:
subject: NIXAID Drone Pipeline {{#success build.status}}SUCCESS{{else}}FAILURE{{/success}} Notification from: "Drone CI <noreply@nixaid.com>"
host: mail.nixaid.com host: mx.nixaid.com
port: 587 port: 587
# username: arno subject: "NIXAID Drone Pipeline {{#success build.status}}SUCCESS{{else}}FAILURE{{/success}} Notification"
# secrets: [ email_username, email_password ]
# recipients: [ andrey.arapov@nixaid.com ]
when: when:
status: [success, failure] # changed event:
event: [push, tag] - push
- tag
status:
- success
- failure