0
0
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:
Robert Kaussow 2021-01-26 14:06:02 +01:00
parent 0b88a350f1
commit 60da4302e4
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 60 additions and 23 deletions

View File

@ -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,6 +206,41 @@ 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",
@ -226,7 +261,7 @@ def release(ctx):
} }
], ],
"depends_on": [ "depends_on": [
"manifest", "pushrm",
], ],
"trigger": { "trigger": {
"ref": [ "ref": [

View File

@ -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/).