From 2b442f6a958a234b4dbe448e444c2805a0138b6b Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 17 Nov 2023 00:28:33 -0500 Subject: [PATCH] changing up the order of the guard --- .drone.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 48b7150..8b9908a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,11 @@ --- -name: Test Ansible Linting of drone-test-1 +name: Ansible Playbook Lint and Test Execution kind: pipeline type: docker steps: - - name: Ansible Playbook Lint and Test Execution + - name: Install requirements, lint, and run Ansible playbook image: gitea.thezengarden.net/podman/images/ansible-dev:latest environment: GITEA_TOKEN: @@ -21,18 +21,21 @@ steps: branch: - development +--- +name: Test Ansible Linting of drone-test-1 +kind: pipeline +type: docker + +steps: - name: Add comment to pull request image: gitea.thezengarden.net/podman/images/ansible-dev:latest environment: GITEA_TOKEN: from_secret: gitea_token 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\": \"Build complete and successful for $DRONE_REPO_NAME\"}"' + - '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\": \"Build complete and successful for $DRONE_REPO_NAME\"}"' depends_on: - - "Ansible Playbook Lint and Test Execution" + - "Install requirements, lint, and run Ansible playbook" when: event: - pull_request