mirror of
https://github.com/thegeeklab/wp-ansible.git
synced 2024-11-21 23:50:40 +00:00
chore: push readme to dockerhub
This commit is contained in:
parent
0b88a350f1
commit
60da4302e4
39
.drone.star
39
.drone.star
@ -7,7 +7,7 @@ def main(ctx):
|
||||
linux(ctx, "arm"),
|
||||
]
|
||||
|
||||
after = manifest(ctx) + release(ctx) + notification(ctx)
|
||||
after = manifest(ctx) + pushrm(ctx) + release(ctx) + notification(ctx)
|
||||
|
||||
for b in before:
|
||||
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):
|
||||
return [{
|
||||
"kind": "pipeline",
|
||||
@ -226,7 +261,7 @@ def release(ctx):
|
||||
}
|
||||
],
|
||||
"depends_on": [
|
||||
"manifest",
|
||||
"pushrm",
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
|
@ -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/)
|
||||
[![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/).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user