From d39ca50802274987305f19a6d649c0ce2e7722e8 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 17 Nov 2023 00:03:05 -0500 Subject: [PATCH] adding stuff --- .drone.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5f1a180..ef0c960 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,11 +4,6 @@ kind: pipeline type: docker -trigger: - - pull_request - - push - - steps: - name: Testing Drone CI with a simple Ansible Playbook image: gitea.thezengarden.net/podman/images/ansible-dev:latest @@ -26,13 +21,15 @@ steps: branch: - development - - name: post-to-gitea-pr-from-arg - image: tsakidev/giteacomment:latest - settings: - gitea_token: + - name: Can we post back to the PR + environment: + GITEA_TOKEN: from_secret: gitea_token - gitea_base_url: http://gitea.thezengarden.net - comment: "Hello from Drone" + commands: + - '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: - # status: [ failure ] - event: pull_request + event: + - pull_request