changing up the order of the guard
This commit is contained in:
parent
013b9e8a2c
commit
2b442f6a95
17
.drone.yml
17
.drone.yml
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
name: Test Ansible Linting of drone-test-1
|
name: Ansible Playbook Lint and Test Execution
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
|
|
||||||
steps:
|
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
|
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||||
environment:
|
environment:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
@ -21,18 +21,21 @@ steps:
|
|||||||
branch:
|
branch:
|
||||||
- development
|
- development
|
||||||
|
|
||||||
|
---
|
||||||
|
name: Test Ansible Linting of drone-test-1
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
- name: Add comment to pull request
|
- name: Add comment to pull request
|
||||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||||
environment:
|
environment:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
commands:
|
commands:
|
||||||
- 'curl -sL -X POST -H "Authorization: token $GITEA_TOKEN" \
|
- '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\"}"'
|
||||||
-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:
|
depends_on:
|
||||||
- "Ansible Playbook Lint and Test Execution"
|
- "Install requirements, lint, and run Ansible playbook"
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
Loading…
x
Reference in New Issue
Block a user