Skip to content

Commit

Permalink
switch from GHA to drone for Ansible Galaxy import
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzzyMistborn committed Nov 14, 2021
1 parent 26b6e58 commit d86cc42
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 24 deletions.
37 changes: 35 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
---
kind: pipeline
type: docker
name: Autorestic Role Checks
name: Autorestic Role Lint

trigger:
event:
- push

steps:
- name: ansible-lint + yamllint
image: fuzzymistborn/docker-linting:latest
environment:
commands:
- "ansible-lint ."
- "yamllint ."
Expand All @@ -22,3 +25,33 @@ steps:
message: "{{#success build.status}}✅ Build for `{{repo.name}}` was *successful*!{{else}}❌ Build for `{{repo.name}}` has *FAILED*!{{/success}} \n🌐 [Output]({{build.link}})\n📝 Commit: {{ commit.message }}"
when:
status: [ success, failure ]

---
kind: pipeline
type: docker
name: Autorestic Role Publish to Galaxy

trigger:
event:
- tag

steps:
- name: Push
image: fuzzymistborn/docker-linting:latest
environment:
GALAXY_API_KEY:
from_secret: galaxy_api_key
commands:
- ansible-galaxy role import --api-key $GALAXY_API_KEY FuzzyMistborn ansible-role-autorestic

- name: Send TG Notification
image: appleboy/drone-telegram
settings:
token:
from_secret: tg_token
to:
from_secret: tg_id
format: markdown
message: "{{#success build.status}}✅ Push to Ansible Galaxy for `{{repo.name}}` was *successful*!{{else}}❌ Push to Ansible Galaxy for `{{repo.name}}` has *FAILED*!{{/success}} \n🌐 [Output]({{build.link}})"
when:
status: [ success, failure ]
22 changes: 0 additions & 22 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit d86cc42

Please sign in to comment.