tidy up and add .gitignore
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
66
.drone.yml
66
.drone.yml
@ -26,44 +26,21 @@ steps:
|
|||||||
- git log -1
|
- git log -1
|
||||||
- ansible --version
|
- ansible --version
|
||||||
- ansible-lint --version
|
- ansible-lint --version
|
||||||
# when:
|
|
||||||
# branch:
|
|
||||||
# exclude:
|
|
||||||
# - main
|
|
||||||
# event: [push]
|
|
||||||
|
|
||||||
|
|
||||||
- name: "ansible_galaxy_requirements"
|
- name: "ansible_galaxy_requirements"
|
||||||
image: *ansible_image
|
image: *ansible_image
|
||||||
commands:
|
commands:
|
||||||
- ansible-galaxy install -r requirements.yml
|
- ansible-galaxy install -r requirements.yml
|
||||||
# when:
|
|
||||||
# branch:
|
|
||||||
# exclude:
|
|
||||||
# - main
|
|
||||||
# event: [push]
|
|
||||||
|
|
||||||
|
|
||||||
- name: "ansible_lint"
|
- name: "ansible_lint"
|
||||||
image: *ansible_image
|
image: *ansible_image
|
||||||
commands:
|
commands:
|
||||||
- ansible-lint --offline
|
- ansible-lint --offline
|
||||||
# when:
|
|
||||||
# branch:
|
|
||||||
# exclude:
|
|
||||||
# - main
|
|
||||||
# event: [push]
|
|
||||||
|
|
||||||
|
|
||||||
- name: "ansible_playbook_execution"
|
- name: "ansible_playbook_execution"
|
||||||
image: *ansible_image
|
image: *ansible_image
|
||||||
commands:
|
commands:
|
||||||
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
||||||
# when:
|
|
||||||
# branch:
|
|
||||||
# exclude:
|
|
||||||
# - main
|
|
||||||
# event: [push]
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -98,46 +75,3 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
###############################################################################
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# - name: Update repo with build stats
|
|
||||||
# image: appleboy/drone-git-push
|
|
||||||
# settings:
|
|
||||||
# branch: testing
|
|
||||||
# remote: gitea@10.10.10.109:chris/drone-test-1.git
|
|
||||||
# force: false
|
|
||||||
# commit: true
|
|
||||||
# empty_commit: true
|
|
||||||
# commit_message: "Drone build ${DRONE_COMMIT_SHA:0:7} => ${DRONE_BUILD_STATUS}"
|
|
||||||
# author_name: "Drone CI"
|
|
||||||
# author_email: "chris@thezengarden.net"
|
|
||||||
# skip_verify: true
|
|
||||||
# ssh_key:
|
|
||||||
# from_secret: gitea_ssh_privkey
|
|
||||||
# when:
|
|
||||||
# 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\"}"'
|
|
||||||
# depends_on:
|
|
||||||
# - "Install requirements, lint, and run Ansible playbook"
|
|
||||||
# when:
|
|
||||||
# event:
|
|
||||||
# - pull_request
|
|
||||||
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.old
|
Reference in New Issue
Block a user