adding stuff
This commit is contained in:
parent
0fe8cb5121
commit
d39ca50802
23
.drone.yml
23
.drone.yml
@ -4,11 +4,6 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
- pull_request
|
|
||||||
- push
|
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Testing Drone CI with a simple Ansible Playbook
|
- name: Testing Drone CI with a simple Ansible Playbook
|
||||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||||
@ -26,13 +21,15 @@ steps:
|
|||||||
branch:
|
branch:
|
||||||
- development
|
- development
|
||||||
|
|
||||||
- name: post-to-gitea-pr-from-arg
|
- name: Can we post back to the PR
|
||||||
image: tsakidev/giteacomment:latest
|
environment:
|
||||||
settings:
|
GITEA_TOKEN:
|
||||||
gitea_token:
|
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
gitea_base_url: http://gitea.thezengarden.net
|
commands:
|
||||||
comment: "Hello from Drone"
|
- 'curl -sL -X POST -H "Authorization: token $GITEA_TOKEN" \
|
||||||
|
-H "Content-type: application/json" \
|
||||||
|
https://gitea.thezengarden.net/api/v1/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/issues/${DRONE_PULL_REQUEST}/comments \
|
||||||
|
-d "{\"body\": \"giraffe butt\"}"'
|
||||||
when:
|
when:
|
||||||
# status: [ failure ]
|
event:
|
||||||
event: pull_request
|
- pull_request
|
||||||
|
Loading…
x
Reference in New Issue
Block a user