testing modularity
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
b3a3cd6da6
commit
48ed5a92ba
67
.drone.yml
67
.drone.yml
@ -5,19 +5,22 @@ type: docker
|
|||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Ansible Playbook Lint and Test
|
- name: Verify environment
|
||||||
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||||
environment:
|
|
||||||
GITEA_TOKEN:
|
|
||||||
from_secret: gitea_token
|
|
||||||
ANSIBLE_INVENTORY:
|
|
||||||
from_secret: ansible_inventory
|
|
||||||
commands:
|
commands:
|
||||||
# - ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml
|
- hostname
|
||||||
- ansible-lint --offline $DRONE_WORKSPACE
|
|
||||||
- ansible-playbook -v -i $ANSIBLE_INVENTORY $DRONE_WORKSPACE/hello.yml
|
|
||||||
- echo "Build complete and successful for $DRONE_REPO_NAME"
|
|
||||||
- whoami
|
- whoami
|
||||||
|
- cd ${DRONE_WORKSPACE} && git log -1
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- development
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
- name: Ansible-Galaxy - Install from requirements.yml
|
||||||
|
- ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- development
|
- development
|
||||||
@ -25,23 +28,39 @@ steps:
|
|||||||
- push
|
- push
|
||||||
|
|
||||||
|
|
||||||
- name: Update repo with build stats
|
- name: Syntax check / Linting
|
||||||
image: appleboy/drone-git-push
|
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||||
settings:
|
environment:
|
||||||
branch: testing
|
ANSIBLE_INVENTORY:
|
||||||
remote: gitea@10.10.10.109:chris/drone-test-1.git
|
from_secret: ansible_inventory
|
||||||
force: false
|
commands:
|
||||||
commit: true
|
- ansible-lint --offline $DRONE_WORKSPACE
|
||||||
empty_commit: true
|
- ansible-playbook -v -i 127.0.0.1, --connection=local $DRONE_WORKSPACE/hello.yml
|
||||||
commit_message: "Drone build ${DRONE_COMMIT_SHA:0:7}"
|
- echo "Build complete and successful for $DRONE_REPO_NAME"
|
||||||
author_name: "Drone CI"
|
|
||||||
author_email: "chris@thezengarden.net"
|
|
||||||
skip_verify: true
|
|
||||||
ssh_key:
|
|
||||||
from_secret: gitea_ssh_privkey
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- development
|
- development
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
|
||||||
|
# - 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
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user