Automate publication to ansible-galaxy

This commit is contained in:
nemunaire 2023-03-27 23:01:47 +02:00
parent 787ced0e9e
commit df7d456c49
1 changed files with 22 additions and 0 deletions

22
.drone.yml Normal file
View File

@ -0,0 +1,22 @@
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm64
steps:
- name: build
image: plugins/ansible:3
commands:
- ansible-galaxy collection build
- ansible-galaxy collection publish --token $${GALAXY_TOKEN} nemunaire-happydomain-${DRONE_TAG##v}.tar.gz
environment:
GALAXY_TOKEN:
from_secret: galaxy-token
trigger:
event:
- tag