molecule/.drone.yml

120 lines
2.3 KiB
YAML
Raw Normal View History

2019-02-28 10:34:14 +01:00
---
kind: pipeline
name: build-amd64
2019-03-18 14:45:18 +01:00
platform:
os: linux
arch: amd64
2019-02-28 10:34:14 +01:00
steps:
2019-03-18 14:45:18 +01:00
- name: dryrun
pull: always
image: plugins/docker:18-linux-amd64
2019-03-18 14:45:18 +01:00
settings:
dockerfile: Dockerfile
2019-03-18 14:45:18 +01:00
dry_run: true
password:
from_secret: docker_password
repo: xoxys/molecule
2019-03-18 14:45:18 +01:00
username:
from_secret: docker_username
- name: publish
pull: always
image: plugins/docker:18-linux-amd64
2019-03-18 14:45:18 +01:00
settings:
auto_tag: true
auto_tag_suffix: amd64
dockerfile: Dockerfile
2019-03-18 14:45:18 +01:00
password:
from_secret: docker_password
repo: xoxys/molecule
2019-03-18 14:45:18 +01:00
username:
from_secret: docker_username
when:
2019-09-23 08:50:01 +02:00
ref:
- refs/heads/master
- refs/tags/**
2019-09-23 08:50:01 +02:00
2019-03-18 14:45:18 +01:00
---
kind: pipeline
name: notifications
platform:
os: linux
arch: amd64
steps:
- name: manifest
pull: always
image: plugins/manifest
settings:
ignore_missing: true
password:
from_secret: docker_password
2019-11-22 22:07:55 +01:00
spec: manifest.tmpl
2019-03-18 14:45:18 +01:00
username:
from_secret: docker_username
when:
2019-09-23 08:50:01 +02:00
ref:
- refs/heads/master
- refs/tags/**
2019-03-18 14:45:18 +01:00
2019-09-23 08:37:25 +02:00
- name: readme
pull: always
image: sheogorath/readme-to-dockerhub
environment:
DOCKERHUB_PASSWORD:
from_secret: docker_password
DOCKERHUB_REPO_NAME: molecule
DOCKERHUB_REPO_PREFIX: xoxys
DOCKERHUB_USERNAME:
from_secret: docker_username
README_PATH: README.md
SHORT_DESCRIPTION: Molecule - Automated Ansible roles testing
when:
ref:
- refs/heads/master
- refs/tags/**
2019-09-23 08:37:25 +02:00
2019-03-18 14:45:18 +01:00
- name: microbadger
pull: always
image: plugins/webhook
settings:
urls:
from_secret: microbadger_url
2019-09-23 08:50:01 +02:00
when:
ref:
- refs/heads/master
- refs/tags/**
2019-03-18 14:45:18 +01:00
- name: matrix
pull: always
image: plugins/matrix
settings:
homeserver:
from_secret: matrix_homeserver
2019-03-18 14:45:18 +01:00
password:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
2019-03-18 14:45:18 +01:00
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
username:
from_secret: matrix_username
when:
2019-09-23 08:50:01 +02:00
ref:
- refs/heads/master
- refs/tags/**
2019-03-18 14:45:18 +01:00
status:
- success
- failure
depends_on:
- build-amd64
2019-03-18 14:45:18 +01:00
2019-05-12 23:21:29 +02:00
---
kind: signature
2019-11-22 22:07:55 +01:00
hmac: 63cc04ce09b24f38ae1b5eb3664f6585f52a434cb2e2520abd9e4208b9f49ee3
2019-05-12 23:21:29 +02:00
2019-03-18 14:45:18 +01:00
...