Skip to content

Commit

Permalink
ci: setup upload to ansible galaxy
Browse files Browse the repository at this point in the history
  • Loading branch information
zekker6 committed Mar 29, 2022
1 parent 208274f commit 8351bba
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/galaxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Publish to galaxy

on:
create:
tags:
- v*

jobs:
publish:
runs-on: ubuntu-latest
container:
image: python:3.9-alpine
steps:
- name: checkout
uses: actions/checkout@v3

- name: Publish collection
env:
GALAXY_API_KEY: "${{ secrets.galaxy_api_key }}"
run: |
set -ex
apk add --update --no-cache --virtual build_dependencies gcc musl-dev libffi-dev openssl-dev rust cargo
pip install --no-cache-dir ansible-core
ansible-galaxy collection build --output-path ./build
ansible-galaxy collection publish --token ${GALAXY_API_KEY} $(find ./build/ -type f)
20 changes: 20 additions & 0 deletions galaxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
namespace: "victoriametrics"
name: "cluster"
version: "0.0.1"
readme: "README.md"
authors:
- "Zakhar Bessarab <[email protected]>"
- "bykvaadm <[email protected]>"
license:
- "Apache-2.0"
tags:
- victoriametrics
- monitoring
repository: "https://github.com/VictoriaMetrics/ansible-playbooks"
build_ignore:
- .git
- .github
- inventory_example
- Vagrantfile
- '*.tar.gz'
2 changes: 2 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
requires_ansible: ">=2.10"
1 change: 1 addition & 0 deletions roles/docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Docker role
1 change: 1 addition & 0 deletions roles/load_balancer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# LoadBalancer role
1 change: 1 addition & 0 deletions roles/victoria_cluster/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# VictoriaMetrics cluster role

0 comments on commit 8351bba

Please sign in to comment.