mirror of
https://github.com/thegeeklab/wp-ansible.git
synced 2024-11-22 10:00:38 +00:00
chore: push readme to dockerhub
This commit is contained in:
parent
0b88a350f1
commit
60da4302e4
81
.drone.star
81
.drone.star
@ -7,7 +7,7 @@ def main(ctx):
|
|||||||
linux(ctx, "arm"),
|
linux(ctx, "arm"),
|
||||||
]
|
]
|
||||||
|
|
||||||
after = manifest(ctx) + release(ctx) + notification(ctx)
|
after = manifest(ctx) + pushrm(ctx) + release(ctx) + notification(ctx)
|
||||||
|
|
||||||
for b in before:
|
for b in before:
|
||||||
for s in stages:
|
for s in stages:
|
||||||
@ -206,27 +206,62 @@ def manifest(ctx):
|
|||||||
},
|
},
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
def pushrm(ctx):
|
||||||
|
return [{
|
||||||
|
"kind": "pipeline",
|
||||||
|
"type": "docker",
|
||||||
|
"name": "pushrm",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
name: "pushrm",
|
||||||
|
image: "chko/docker-pushrm:1",
|
||||||
|
environment: {
|
||||||
|
DOCKER_PASS: {
|
||||||
|
from_secret: "docker_password",
|
||||||
|
},
|
||||||
|
DOCKER_USER: {
|
||||||
|
from_secret: "docker_username",
|
||||||
|
},
|
||||||
|
PUSHRM_FILE: "README.md",
|
||||||
|
PUSHRM_SHORT: "Drone plugin to provision infrastructure with Ansible",
|
||||||
|
PUSHRM_TARGET: owncloudci/%s" % (ctx.repo.name),
|
||||||
|
},
|
||||||
|
when: {
|
||||||
|
status: ["success"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"depends_on": [
|
||||||
|
"manifest",
|
||||||
|
],
|
||||||
|
"trigger": {
|
||||||
|
"ref": [
|
||||||
|
"refs/tags/**",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}]
|
||||||
|
|
||||||
def release(ctx):
|
def release(ctx):
|
||||||
return [{
|
return [{
|
||||||
"kind": "pipeline",
|
"kind": "pipeline",
|
||||||
"type": "docker",
|
"type": "docker",
|
||||||
"name": "release",
|
"name": "release",
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "release",
|
"name": "release",
|
||||||
"image": "plugins/github-release",
|
"image": "plugins/github-release",
|
||||||
"settings": {
|
"settings": {
|
||||||
"api_key": {
|
"api_key": {
|
||||||
"from_secret": "github_token",
|
"from_secret": "github_token",
|
||||||
|
},
|
||||||
|
"note": "CHANGELOG.md",
|
||||||
|
"overwrite": True,
|
||||||
|
"title": ctx.build.ref.replace("refs/tags/", ""),
|
||||||
},
|
},
|
||||||
"note": "CHANGELOG.md",
|
}
|
||||||
"overwrite": True,
|
|
||||||
"title": ctx.build.ref.replace("refs/tags/", ""),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"depends_on": [
|
"depends_on": [
|
||||||
"manifest",
|
"pushrm",
|
||||||
],
|
],
|
||||||
"trigger": {
|
"trigger": {
|
||||||
"ref": [
|
"ref": [
|
||||||
@ -244,16 +279,16 @@ def notification(ctx):
|
|||||||
"disable": True,
|
"disable": True,
|
||||||
},
|
},
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"name": "notify",
|
"name": "notify",
|
||||||
"image": "plugins/slack",
|
"image": "plugins/slack",
|
||||||
"settings": {
|
"settings": {
|
||||||
"webhook": {
|
"webhook": {
|
||||||
"from_secret": "private_rocketchat",
|
"from_secret": "private_rocketchat",
|
||||||
},
|
},
|
||||||
"channel": "builds",
|
"channel": "builds",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"depends_on": [
|
"depends_on": [
|
||||||
"release",
|
"release",
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
[![Build Status](https://drone.owncloud.com/api/badges/owncloud-ci/drone-ansible/status.svg)](https://drone.owncloud.com/owncloud-ci/drone-ansible/)
|
[![Build Status](https://drone.owncloud.com/api/badges/owncloud-ci/drone-ansible/status.svg)](https://drone.owncloud.com/owncloud-ci/drone-ansible/)
|
||||||
[![Docker Hub](https://img.shields.io/badge/docker-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/owncloudci/drone-ansible)
|
[![Docker Hub](https://img.shields.io/badge/docker-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/owncloudci/drone-ansible)
|
||||||
|
[![Source: GitHub](https://img.shields.io/badge/source-github-blue.svg?logo=github&logoColor=white)](https://github.com/owncloud-ops/drone-ansible)
|
||||||
|
[![License: Apache-2.0](https://img.shields.io/github/license/owncloud-ops/drone-ansible)](https://github.com/owncloud-ops/drone-ansible/blob/main/LICENSE)
|
||||||
|
|
||||||
Drone plugin to provision infrastructure with [Ansible](https://www.ansible.com/).
|
Drone plugin to provision infrastructure with [Ansible](https://www.ansible.com/).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user